From c1d7b17bf0fcd801595d37c61c8c17e3059dd15f Mon Sep 17 00:00:00 2001 From: Network Service Mesh Bot <60070799+nsmbot@users.noreply.github.com> Date: Mon, 20 Mar 2023 04:32:17 -0500 Subject: [PATCH] Fix Dial Options --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 9016204d..a9e642d6 100644 --- a/main.go +++ b/main.go @@ -227,16 +227,16 @@ func main() { tlsServerConfig := tlsconfig.MTLSServerConfig(source, source, tlsconfig.AuthorizeAny()) tlsServerConfig.MinVersion = tls.VersionTLS12 - dialOptions := []grpc.DialOption{ - grpc.WithBlock(), + dialOptions := append(tracing.WithTracingDial(), grpc.WithTransportCredentials( grpcfd.TransportCredentials(credentials.NewTLS(tlsClientConfig))), + grpc.WithBlock(), grpc.WithDefaultCallOptions( grpc.PerRPCCredentials(token.NewPerRPCCredentials(spiffejwt.TokenGeneratorFunc(source, config.MaxTokenLifetime))), ), grpcfd.WithChainStreamInterceptor(), grpcfd.WithChainUnaryInterceptor(), - } + ) var spiffeidMap genericsync.Map[spiffeid.ID, *genericsync.Map[string, struct{}]]