resolve linter issues
This commit is contained in:
@@ -34,7 +34,9 @@ func health(cfg *config.Config) func(http.ResponseWriter, *http.Request) {
|
|||||||
|
|
||||||
// TODO(tboerger): check if services are up and running
|
// TODO(tboerger): check if services are up and running
|
||||||
|
|
||||||
io.WriteString(w, http.StatusText(http.StatusOK))
|
if _, err := io.WriteString(w, http.StatusText(http.StatusOK)); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,6 +48,8 @@ func ready(cfg *config.Config) func(http.ResponseWriter, *http.Request) {
|
|||||||
|
|
||||||
// TODO(tboerger): check if services are up and running
|
// TODO(tboerger): check if services are up and running
|
||||||
|
|
||||||
io.WriteString(w, http.StatusText(http.StatusOK))
|
if _, err := io.WriteString(w, http.StatusText(http.StatusOK)); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,9 @@ func Server(opts ...Option) (http.Service, error) {
|
|||||||
handle = svc.NewTracing(handle)
|
handle = svc.NewTracing(handle)
|
||||||
}
|
}
|
||||||
|
|
||||||
micro.RegisterHandler(service.Server(), handle)
|
if err := micro.RegisterHandler(service.Server(), handle); err != nil {
|
||||||
|
return http.Service{}, err
|
||||||
|
}
|
||||||
|
|
||||||
service.Init()
|
service.Init()
|
||||||
return service, nil
|
return service, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user