Skip to content

Commit

Permalink
reuse the default client
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Feb 18, 2021
1 parent 7736d26 commit d458593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocis-pkg/service/grpc/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func NewService(opts ...Option) Service {
// first add a server because it will reset any options
micro.Server(mgrpcs.NewServer()),
// also add a client that can be used after initializing the service
micro.Client(mgrpcc.NewClient()),
micro.Client(DefaultClient),
micro.Address(sopts.Address),
micro.Name(strings.Join([]string{sopts.Namespace, sopts.Name}, ".")),
micro.Version(sopts.Version),
Expand Down

0 comments on commit d458593

Please sign in to comment.