Satisfy golangci-lint
Some checks failed
Test and build / Build (push) Has been cancelled

This commit is contained in:
2026-02-23 16:46:12 +01:00
parent 52edc17198
commit 35723ad944
3 changed files with 6 additions and 7 deletions

View File

@@ -50,14 +50,14 @@ func runAPRSIS(ctx context.Context, command *cli.Command) error {
}
func receiveAPRSIS(config *hamview.BrokerConfig, callsign string, client *aprsis.ProxyClient) {
defer client.Close()
defer func() { _ = client.Close() }()
broker, err := hamview.NewBroker(config)
if err != nil {
logger.Errorf("receiver: can't setup to broker: %v", err)
return
}
defer broker.Close()
defer func() { _ = broker.Close() }()
info := client.Info() // TODO: enrich info from config?
@@ -73,5 +73,5 @@ func receiveAPRSIS(config *hamview.BrokerConfig, callsign string, client *aprsis
logger.Error(err)
}
}
logger.Info("receiver: stopped receiving packets from station: %s", callsign)
logger.Infof("receiver: stopped receiving packets from station: %s", callsign)
}