Skip to content

Commit

Permalink
use service name as authority
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkit4tech committed Dec 20, 2024
1 parent e2bed0c commit 2a7df41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protobuf/source_reflection.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewDescriptorProviderReflection(args ReflectionArgs) (DescriptorProvider, e
conn, err := grpc.DialContext(
ctx,
r.Scheme()+":///", // minimal target to dial registered host:port pairs
grpc.WithAuthority(strings.Join(args.Peers, ",")),
grpc.WithAuthority(args.Service),
grpc.WithBlock(),
grpc.WithInsecure())
if err != nil {
Expand Down

0 comments on commit 2a7df41

Please sign in to comment.