Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fixup! Move DB pool and helper functions into dedicated Database class
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Dec 4, 2019
1 parent 9969359 commit 2ddde4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/data_stores/main/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@ def delete_expired_event_txn(txn):
txn, "_get_event_cache", (event.event_id,)
)

yield self.runInteraction("delete_expired_event", delete_expired_event_txn)
yield self.db.runInteraction("delete_expired_event", delete_expired_event_txn)

def _delete_event_expiry_txn(self, txn, event_id):
"""Delete the expiry timestamp associated with an event ID without deleting the
Expand Down Expand Up @@ -2063,7 +2063,7 @@ def get_next_event_to_expire_txn(txn):

return txn.fetchone()

return self.runInteraction(
return self.db.runInteraction(
desc="get_next_event_to_expire", func=get_next_event_to_expire_txn
)

Expand Down

0 comments on commit 2ddde4a

Please sign in to comment.