refactor: simplify wolff telemetry handler id

This commit is contained in:
Thales Macedo Garitezi 2022-10-17 16:26:04 -03:00
parent 2d01726b22
commit ee4c723fcb
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ handle_telemetry_event(_EventId, _Metrics, _MetaData, _HandlerConfig) ->
-spec telemetry_handler_id(emqx_resource:resource_id()) -> binary().
telemetry_handler_id(InstanceID) ->
<<"emqx-bridge-kafka-producer-", InstanceID/binary, "-telemetry-handler">>.
<<"emqx-bridge-kafka-producer-", InstanceID/binary>>.
uninstall_telemetry_handlers(InstanceID) ->
HandlerID = telemetry_handler_id(InstanceID),