Use gino engine instance from Houdini.Data module in HoudiniFactory

This commit is contained in:
Ben 2019-03-18 15:59:31 +00:00
parent f83b0dee1c
commit 375bd59705

View File

@ -20,7 +20,7 @@ import aioredis
from aiocache import SimpleMemoryCache
from watchdog.observers import Observer
from gino import Gino
from Houdini.Data import db
try:
import uvloop
@ -40,7 +40,7 @@ class HoudiniFactory:
self.redis = None
self.config = None
self.cache = None
self.db = Gino()
self.db = db
self.peers_by_ip = {}
self.server_name = kwargs['server']