Skip to content

Commit

Permalink
Merge pull request #3041 from owncloud/default_client_registry_settings
Browse files Browse the repository at this point in the history
make default client respect the registry settings
  • Loading branch information
wkloucek authored Jan 26, 2022
2 parents cca0fd5 + 8bd3542 commit c9f9f9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-default-client-registry-settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Make the default grpc client use the registry settings

We've fixed the default grpc client to use the registry settings. Previously it always
used mdns.

https://github.com/owncloud/ocis/pull/3041
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 c9f9f9a

Please sign in to comment.