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

pending.get(key) already raises TypeError for an unhashable key.
This commit is contained in:
kshitijk4poor
2026-09-09 21:09:56 +05:30
committed by kshitij
parent a4113eb994
commit 6acd90d11a

View File

@@ -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: