mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-19 18:21:03 +02:00
Fix bedrock:
- Fix missing await - Fix missing error response
This commit is contained in:
parent
8efc3b281d
commit
4df9d1c32d
1 changed files with 3 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ class Processor(ConsumerProducer):
|
||||||
model=str(self.model),
|
model=str(self.model),
|
||||||
)
|
)
|
||||||
|
|
||||||
self.send(r, properties={"id": id})
|
await self.send(r, properties={"id": id})
|
||||||
|
|
||||||
print("Done.", flush=True)
|
print("Done.", flush=True)
|
||||||
|
|
||||||
|
|
@ -333,6 +333,8 @@ class Processor(ConsumerProducer):
|
||||||
model=None,
|
model=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
await self.send(r, properties={"id": id})
|
||||||
|
|
||||||
self.consumer.acknowledge(msg)
|
self.consumer.acknowledge(msg)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue