Skip to content
Snippets Groups Projects
Commit baf04be5 authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Set datastore's .hs field in SQLBaseStore rather than in the toplevel...

Set datastore's .hs field in SQLBaseStore rather than in the toplevel DataStore mixed-in result class
parent 59dfbaba
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,6 @@ class DataStore(RoomDataStore, RoomMemberStore, MessageStore, RoomStore,
def __init__(self, hs):
super(DataStore, self).__init__(hs)
self.event_factory = hs.get_event_factory()
self.hs = hs
def persist_event(self, event):
if event.type == MessageEvent.TYPE:
......
......@@ -27,6 +27,7 @@ logger = logging.getLogger(__name__)
class SQLBaseStore(object):
def __init__(self, hs):
self.hs = hs
self._db_pool = hs.get_db_pool()
def cursor_to_dict(self, cursor):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment