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())