Rename fs queue controller module

This commit is contained in:
nolash 2021-06-01 13:53:44 +02:00
parent 3e487d0702
commit ca4f7c9b8e
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 5 additions and 2 deletions

View File

@ -45,6 +45,8 @@ class FsQueue:
self.path_state[r[0]] = r[1] self.path_state[r[0]] = r[1]
self.index_path = os.path.join(self.path, '.active') 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) os.makedirs(self.index_path, exist_ok=True)
@ -101,6 +103,7 @@ class FsQueue:
logg.debug('purge queue entry {}'.format(key_hex)) logg.debug('purge queue entry {}'.format(key_hex))
def set(self, key, status): def set(self, key, status):
idx = self.__get_backend_idx(key) idx = self.__get_backend_idx(key)

View File

@ -6,7 +6,7 @@ import logging
import os import os
# local imports # local imports
from chainqueue.fs.cache import FsQueue from chainqueue.fs.queue import FsQueue
from chainqueue.fs.dir import HexDir from chainqueue.fs.dir import HexDir
from chainqueue.enum import StatusBits from chainqueue.enum import StatusBits