diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-09-12 13:57:24 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-09-12 14:28:07 +0100 |
commit | e53d77b5017e823506484bbb95964b4d97f3e2a1 (patch) | |
tree | e1408272effff81c8c8f87b243ecb64a59b16bc1 /synapse/storage/room.py | |
parent | Add a better _store_room_member_txn() method that takes separated fields inst... (diff) | |
download | synapse-e53d77b5017e823506484bbb95964b4d97f3e2a1.tar.xz |
Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool
Diffstat (limited to 'synapse/storage/room.py')
-rw-r--r-- | synapse/storage/room.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/room.py b/synapse/storage/room.py index 017169ce00..5adf8cdf1b 100644 --- a/synapse/storage/room.py +++ b/synapse/storage/room.py @@ -149,7 +149,7 @@ class RoomStore(SQLBaseStore): defer.returnValue(None) def get_power_level(self, room_id, user_id): - return self._db_pool.runInteraction( + return self.runInteraction( self._get_power_level, room_id, user_id, ) @@ -182,7 +182,7 @@ class RoomStore(SQLBaseStore): return None def get_ops_levels(self, room_id): - return self._db_pool.runInteraction( + return self.runInteraction( self._get_ops_levels, room_id, ) |