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

@@ -82,8 +82,7 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: ham/hamview-receiver:latest
registry: ${{ vars.REGISTRY }}
tags: ${{ vars.REGISTRY }}/ham/hamview-receiver:latest
context: .
platforms: |
linux/amd64

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

View File

@@ -34,13 +34,13 @@ func runMeshCore(ctx context.Context, command *cli.Command) error {
if err != nil {
return err
}
defer broker.Close()
defer func() { _ = broker.Close() }()
receiver, err := hamview.NewMeshCoreReceiver(&config.Receiver)
if err != nil {
return err
}
defer receiver.Close()
defer func() { _ = receiver.Close() }()
info := receiver.Info() // TODO: enrich info from config?
if err = broker.StartRadio(protocol.MeshCore, info); err != nil {