Only do context unsubs in main feed bus path

syseng_tweaks
Tyler Goodlet 2021-04-14 11:01:43 -04:00
parent a7cee86fea
commit 9c3f8ff050
1 changed files with 4 additions and 1 deletions

View File

@ -236,5 +236,8 @@ async def sample_and_broadcast(
trio.BrokenResourceError,
trio.ClosedResourceError
):
subs.remove(ctx)
# XXX: do we need to deregister here
# if it's done in the fee bus code?
# so far seems like no since this should all
# be single-threaded.
log.error(f'{ctx.chan.uid} dropped connection')