Rename fs queue controller module
This commit is contained in:
parent
3e487d0702
commit
ca4f7c9b8e
@ -45,6 +45,8 @@ class FsQueue:
|
||||
self.path_state[r[0]] = r[1]
|
||||
|
||||
self.index_path = os.path.join(self.path, '.active')
|
||||
self.nonce_path = os.path.join(self.path, '.accounts')
|
||||
|
||||
os.makedirs(self.index_path, exist_ok=True)
|
||||
|
||||
|
||||
@ -101,6 +103,7 @@ class FsQueue:
|
||||
|
||||
logg.debug('purge queue entry {}'.format(key_hex))
|
||||
|
||||
|
||||
def set(self, key, status):
|
||||
idx = self.__get_backend_idx(key)
|
||||
|
@ -6,7 +6,7 @@ import logging
|
||||
import os
|
||||
|
||||
# local imports
|
||||
from chainqueue.fs.cache import FsQueue
|
||||
from chainqueue.fs.queue import FsQueue
|
||||
from chainqueue.fs.dir import HexDir
|
||||
from chainqueue.enum import StatusBits
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user