resolve linter issues

This commit is contained in:
David Christofas
2021-02-26 09:14:27 +05:45
committed by Phil Davis
parent 17711526e5
commit dfbc6759da
12 changed files with 146 additions and 114 deletions
+3 -1
View File
@@ -46,7 +46,9 @@ func Server(opts ...Option) (http.Service, error) {
handle = svc.NewTracing(handle)
}
micro.RegisterHandler(service.Server(), handle)
if err := micro.RegisterHandler(service.Server(), handle); err != nil {
return http.Service{}, err
}
service.Init()
return service, nil