Skip to content

The agent that grows with you

refactor(dashboard): drop the redundant hash() pre-check in coalesced_read

kshitijk4poor6acd90d11abc
diff --git a/hermes_cli/web_read_coalescing.py b/hermes_cli/web_read_coalescing.py
index 3e3864e719b..3f5b5498a95 100644
--- a/hermes_cli/web_read_coalescing.py
+++ b/hermes_cli/web_read_coalescing.py
@@ -43,7 +43,6 @@ def coalesced_read(func, *, thread_runner=run_sync):
bound = signature.bind(*args, **kwargs)
bound.apply_defaults()
key = (str(get_hermes_home()), _freeze(bound.arguments))
- hash(key)
pending, admission = states.setdefault(loop, ({}, asyncio.Semaphore(1)))
task = pending.get(key)
if task is None: