resolve linter issues

This commit is contained in:
David Christofas
2021-02-24 14:04:05 +01:00
parent 3328f9acb7
commit 878e465c52
5 changed files with 23 additions and 7 deletions
+3 -1
View File
@@ -47,7 +47,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