Improve Err Handling

This commit is contained in:
Ben Toogood
2020-04-02 18:41:06 +01:00
parent cfde3ec3d9
commit ce23ab36cb
3 changed files with 32 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ func newService(opts ...Option) Service {
serviceName := options.Server.Options().Name
// TODO: better accessors
authFn := func() auth.Auth { return service.opts.Auth }
authFn := func() auth.Auth { return options.Auth }
// wrap client to inject From-Service header on any calls
options.Client = wrapper.FromService(serviceName, options.Client, authFn)