bugfix
This commit is contained in:
@@ -72,6 +72,8 @@ async def main():
|
||||
if memcache:
|
||||
await memcache.connect()
|
||||
redis_state = RedisState(BlockData.by_opt('redis'))
|
||||
else:
|
||||
log.debug('No memcache')
|
||||
db.connect()
|
||||
if db:
|
||||
db_state = DbState(BlockData.by_opt('db'))
|
||||
@@ -79,6 +81,7 @@ async def main():
|
||||
state = await db_state.load()
|
||||
if state is None:
|
||||
log.info('no state in database')
|
||||
if redis_state:
|
||||
await redis_state.clear()
|
||||
else:
|
||||
current_blockstate.set(state)
|
||||
|
||||
Reference in New Issue
Block a user