- In
aggregator/cmd/main.go, function aggregatorMain():
err=aggregator.Start(context.Background())
iferr!=nil {
returnerr
}
returnnilerr can be returned directly.
- In
aggregator/internal/pkg/server.go, function serveOperators(). Same pattern,
err=http.ListenAndServe(agg.AggregatorConfig.Aggregator.ServerIpPortAddress, nil)
iferr!=nil {
returnerr
}
returnnil
}
aggregator/cmd/main.go, functionaggregatorMain():err can be returned directly.
aggregator/internal/pkg/server.go, functionserveOperators(). Same pattern,