Skip to content

Commit

Permalink
fix: no clear persistent_term: channels
Browse files Browse the repository at this point in the history
  • Loading branch information
jostar-y committed Jan 12, 2024
1 parent d614083 commit 1e74b60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/emqx_plugin_kafka_producer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ on_stop(_InstId, #{client_id := ClientId, channels := Channels}) ->
}),
maps:foreach(fun(_, ChannelState) -> remove_producers(ClientId, ChannelState) end, Channels),
deallocate_client(ClientId),
persistent_term:erase({?EMQX_PLUGIN_KAFKA_APP, ?EMQX_PLUGIN_KAFKA_CHANNELS}),
ok.

on_add_channel(
Expand Down

0 comments on commit 1e74b60

Please sign in to comment.