Skip to content

Commit 42e9284

Browse files
committed
Avoid reconstructing the Dispatch object
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent d7a3ded commit 42e9284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/dispatch/_bg_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ async def _fetch(self) -> None:
280280
for client_dispatch in page:
281281
dispatch = Dispatch(client_dispatch)
282282

283-
self._dispatches[dispatch.id] = Dispatch(client_dispatch)
283+
self._dispatches[dispatch.id] = dispatch
284284
old_dispatch = old_dispatches.pop(dispatch.id, None)
285285
if not old_dispatch:
286286
_logger.debug("New dispatch: %s", dispatch)

0 commit comments

Comments
 (0)