Fix linter issues

Fix all new linter issues that are raised by golanglint-ci 1.56
This commit is contained in:
Nicholas Thompson
2024-02-19 20:08:46 +02:00
parent 86d865ce1b
commit fa6fc5fb34
3 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ func getOpts(config Config) *mqtt.ClientOptions {
opts.SetOnConnectHandler(func(mqtt.Client) {
log.Info("Client connected to broker")
})
opts.SetConnectionLostHandler(func(cli mqtt.Client, err error) {
opts.SetConnectionLostHandler(func(_ mqtt.Client, err error) {
log.Errorf("Client connection to broker lost: %v", err)
})