Fix broker-tail stripping using `str.removesuffix()`

agg_feedz
Tyler Goodlet 2022-11-10 01:41:35 -05:00
parent 2c4daf08e0
commit 8a01c9e42b
1 changed files with 2 additions and 2 deletions

View File

@ -1255,7 +1255,7 @@ async def open_feed_bus(
assert bfqsn in fqsn and brokername in fqsn
if sym.suffix:
bfqsn = fqsn.rstrip(f'.{brokername}')
bfqsn = fqsn.removesuffix(f'.{brokername}')
log.warning(f'{brokername} expanded symbol {symbol} -> {bfqsn}')
# pack for ``.started()`` sync msg
@ -1327,7 +1327,7 @@ async def open_feed_bus(
# maybe use the current task-id to key the sub list that's
# added / removed? Or maybe we can add a general
# pause-resume by sub-key api?
bfqsn = fqsn.rstrip(f'.{brokername}')
bfqsn = fqsn.removesuffix(f'.{brokername}')
bus_subs = bus._subscribers[bfqsn]
bus_subs.append(sub)
local_subs.append(sub)