Skip to content

Commit

Permalink
Add call for on_packet_recv handler
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Beyer <[email protected]>
  • Loading branch information
matthiasbeyer committed Apr 5, 2024
1 parent fb6d3f7 commit 0e48621
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/receive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ pub(super) async fn handle_background_receiving(
tracing::field::debug(packet.get().get_kind()),
);

tracing::trace!("Calling on_packet_recv() handler");
(inner.lock().await.default_handlers.on_packet_recv)(packet.clone());

match packet.get() {
mqtt_format::v5::packets::MqttPacket::Auth(_) => todo!(),
mqtt_format::v5::packets::MqttPacket::Disconnect(_) => todo!(),
Expand Down

0 comments on commit 0e48621

Please sign in to comment.