Skip to content

Commit 626a9e2

Browse files
committed
Improve target host creation for load-balancing
1 parent 7df77e3 commit 626a9e2

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
@@ -510,8 +510,9 @@ func setupCrossSporkClient(config config.Config, logger zerolog.Logger) (*reques
510510
Endpoints: endpoints,
511511
})
512512

513+
targetHost := fmt.Sprintf("%s:///%s", mr.Scheme(), "flow-access")
513514
currentSporkClient, err = grpc.NewClient(
514-
mr.Scheme(),
515+
targetHost,
515516
grpc.WithGRPCDialOptions(
516517
grpcOpts.WithDefaultCallOptions(grpcOpts.MaxCallRecvMsgSize(DefaultMaxMessageSize)),
517518
grpcOpts.WithResolvers(mr),

0 commit comments

Comments
 (0)