mirror of
https://github.com/Retropex/custom-ocean.xyz-dashboard.git
synced 2025-05-12 19:20:45 +02:00
Update worker_service.py
This commit is contained in:
parent
9988913861
commit
b15dfc8691
@ -25,6 +25,10 @@ class WorkerService:
|
|||||||
dashboard_service (MiningDashboardService): The initialized dashboard service
|
dashboard_service (MiningDashboardService): The initialized dashboard service
|
||||||
"""
|
"""
|
||||||
self.dashboard_service = dashboard_service
|
self.dashboard_service = dashboard_service
|
||||||
|
# Immediately access the wallet from dashboard_service when it's set
|
||||||
|
if hasattr(dashboard_service, 'wallet'):
|
||||||
|
self.wallet = dashboard_service.wallet
|
||||||
|
logging.info(f"Worker service updated with new wallet: {self.wallet}")
|
||||||
logging.info("Dashboard service connected to worker service")
|
logging.info("Dashboard service connected to worker service")
|
||||||
|
|
||||||
def generate_default_workers_data(self):
|
def generate_default_workers_data(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user