From 375bd59705486928d64993ded338c7088df388f2 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 18 Mar 2019 15:59:31 +0000 Subject: [PATCH] Use gino engine instance from Houdini.Data module in HoudiniFactory --- Houdini/HoudiniFactory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Houdini/HoudiniFactory.py b/Houdini/HoudiniFactory.py index 1187740..6f4b136 100644 --- a/Houdini/HoudiniFactory.py +++ b/Houdini/HoudiniFactory.py @@ -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']