From 586a6576741707ac27da613d3d4ae36923617fcd Mon Sep 17 00:00:00 2001 From: Thomas Vogl Date: Sat, 31 Dec 2022 11:16:29 +0100 Subject: [PATCH] - fix warning for unused function parameter --- internal/MqttService/MqttService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/MqttService/MqttService.go b/internal/MqttService/MqttService.go index 47574fe..216bc17 100644 --- a/internal/MqttService/MqttService.go +++ b/internal/MqttService/MqttService.go @@ -29,7 +29,7 @@ func (m *MqttService) pinCyclicCallback(pinName string, pinState PinControlServi token := m.mqttClient.Publish(topic, 1, false, string(pinState)) go m._asyncWait(token, nil) } -func (m *MqttService) controlCallback(client mqtt.Client, message mqtt.Message) { +func (m *MqttService) controlCallback(_ mqtt.Client, message mqtt.Message) { if pinNo, err := PinNameFromTopic(message.Topic()); err == nil { if err := m.pinService.Command(pinNo, PinControlService.PinCommand(message.Payload())); err != nil { log.Error(err.Error())