mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-10 00:20:06 +08:00
add missing await to async_managed_tx_method
This commit is contained in:
@@ -98,7 +98,7 @@ def async_managed_tx_method(
|
||||
retry_exhausted = True
|
||||
for i in range(num_retries):
|
||||
try:
|
||||
result = f(self, *args, **kwargs)
|
||||
result = await f(self, *args, **kwargs)
|
||||
self.db.commit()
|
||||
if isinstance(result, SQLModel):
|
||||
self.db.refresh(result)
|
||||
|
||||
Reference in New Issue
Block a user