Skip to content

Commit

Permalink
Merge pull request #309 from tattle-made/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
aatmanvaidya authored May 10, 2024
2 parents 8723337 + 4af10d9 commit f21e2e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/feluda.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ComponentType(Enum):
class Feluda:
def __init__(self, configPath):
self.config = config.load(configPath)
self.store = None
if self.config.operators:
from core.operators import Operator

Expand Down
3 changes: 2 additions & 1 deletion src/worker/hash/hash_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def worker(ch, method, properties, body):
feluda.setup()
count_queue = feluda.config.queue.parameters.queues[0]["name"]
# setup Components
feluda.start_component(ComponentType.STORE)
if feluda.config.store:
feluda.start_component(ComponentType.STORE)
feluda.start_component(ComponentType.QUEUE)
# init hash operator
media_file_hash.initialize(param=None)
Expand Down

0 comments on commit f21e2e6

Please sign in to comment.