Skip to content

Commit 779637a

Browse files
committed
Improve target host creation for load-balancing
1 parent 07fa89f commit 779637a

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
@@ -504,8 +504,9 @@ func setupCrossSporkClient(config config.Config, logger zerolog.Logger) (*reques
504504
Endpoints: endpoints,
505505
})
506506

507+
targetHost := fmt.Sprintf("%s:///%s", mr.Scheme(), "flow-access")
507508
currentSporkClient, err = grpc.NewClient(
508-
mr.Scheme(),
509+
targetHost,
509510
grpc.WithGRPCDialOptions(
510511
grpcOpts.WithDefaultCallOptions(grpcOpts.MaxCallRecvMsgSize(DefaultMaxMessageSize)),
511512
grpcOpts.WithResolvers(mr),

0 commit comments

Comments
 (0)