Skip to content

Commit

Permalink
fix: correct the number of pongs metric
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Mar 3, 2024
1 parent 8d02886 commit 761b848
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func (c *Client) Pong(_ mqtt.Client, b mqtt.Message) {

c.Logger.Info("successful ping", zap.Duration("time", duration), zap.Int("id", id))
c.Metrics.PingDuration.Observe(duration.Seconds())
c.Metrics.Pongs.Inc()
}
}
}
Expand Down

0 comments on commit 761b848

Please sign in to comment.