Transactions.
This commit is contained in:
parent
e6f702a6b4
commit
9d5815ed10
@ -203,9 +203,7 @@ class RPCView(BaseView):
|
||||
if msg.type == web.WSMsgType.TEXT:
|
||||
try:
|
||||
async with Profiler():
|
||||
self.app.db.begin()
|
||||
await rpc(msg.json())
|
||||
self.app.db.commit()
|
||||
except Exception as ex:
|
||||
print(ex, flush=True)
|
||||
await self.services.socket.delete(ws)
|
||||
|
Loading…
Reference in New Issue
Block a user