Commit fea2d96f authored by Ethen Pociask's avatar Ethen Pociask

[indexer.client] Pass lint

parent c500a311
......@@ -24,7 +24,6 @@ const ethereumAddressRegex = `^0x[a-fA-F0-9]{40}$`
// TODO : Structured error responses
type API struct {
log log.Logger
listener net.Listener
router *chi.Mux
serverConfig config.ServerConfig
metricsConfig config.ServerConfig
......@@ -139,9 +138,9 @@ func (a *API) startServer(ctx context.Context) error {
// than the one we requested (e.g. port 0)
a.serverConfig.Port = tcpAddr.Port
http.Serve(listener, server.Handler)
err = http.Serve(listener, server.Handler)
if err != nil {
a.log.Error("api server stopped", "err", err)
a.log.Error("api server stopped with error", "err", err)
} else {
a.log.Info("api server stopped")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment