Skip to content

Commit

Permalink
fix: change DAQJobMessageStatsRemoteDict to use dict instead of defau…
Browse files Browse the repository at this point in the history
…ltdict
  • Loading branch information
furkan-bilgin committed Dec 4, 2024
1 parent b02ebc9 commit 3cbbede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/enrgdaq/daq/jobs/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DAQJobMessageStatsRemote(DAQJobMessage):
stats: "DAQJobMessageStatsRemoteDict"


DAQJobMessageStatsRemoteDict = defaultdict[str, SupervisorRemoteStats]
DAQJobMessageStatsRemoteDict = dict[str, SupervisorRemoteStats]


class DAQJobRemoteConfig(DAQJobConfig):
Expand Down Expand Up @@ -290,7 +290,7 @@ def _unpack_message(self, message: bytes) -> DAQJobMessage:
return res

def _send_remote_stats_message(self):
self._put_message_out(DAQJobMessageStatsRemote(self._remote_stats))
self._put_message_out(DAQJobMessageStatsRemote(dict(self._remote_stats)))

def __del__(self):
"""
Expand Down

0 comments on commit 3cbbede

Please sign in to comment.