fix(shared-sub): update stats when unsub shared topic filter

This commit is contained in:
JimMoen 2024-03-15 18:08:17 +08:00
parent 59e280dc54
commit 889eb48368
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ handle_call({unsubscribe, Group, Topic, SubPid}, _From, State) ->
true = ets:delete_object(?SHARED_SUBS, {{Group, Topic}, SubPid}),
delete_route_if_needed({Group, Topic}),
maybe_delete_round_robin_count({Group, Topic}),
{reply, ok, State};
{reply, ok, update_stats(State)};
handle_call(Req, _From, State) ->
?SLOG(error, #{msg => "unexpected_call", req => Req}),
{reply, ignored, State}.