Skip to content

Commit efebeef

Browse files
committed
Improve target host creation for load-balancing
1 parent 390e1b5 commit efebeef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootstrap/bootstrap.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,9 @@ func setupCrossSporkClient(config config.Config, logger zerolog.Logger) (*reques
515515
Endpoints: endpoints,
516516
})
517517

518+
targetHost := fmt.Sprintf("%s:///%s", mr.Scheme(), "flow-access")
518519
currentSporkClient, err = grpc.NewClient(
519-
mr.Scheme(),
520+
targetHost,
520521
grpc.WithGRPCDialOptions(
521522
grpcOpts.WithDefaultCallOptions(grpcOpts.MaxCallRecvMsgSize(DefaultMaxMessageSize)),
522523
grpcOpts.WithResolvers(mr),

0 commit comments

Comments
 (0)