Skip to content

Commit

Permalink
make default client respect the registry settings
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Jan 26, 2022
1 parent cca0fd5 commit 1c1f8da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ocis-pkg/service/grpc/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ import (
var DefaultClient = getDefaultGrpcClient()

func getDefaultGrpcClient() client.Client {

reg := registry.GetRegistry()

return mgrpcc.NewClient(
client.Registry(reg),
client.Wrap(mbreaker.NewClientWrapper()),
)
}
Expand Down

0 comments on commit 1c1f8da

Please sign in to comment.