fix some TODOs

This commit is contained in:
Willy Kloucek
2022-01-03 07:49:24 +01:00
parent dcc01ca2a3
commit d5504093e8
4 changed files with 12 additions and 12 deletions
+2 -1
View File
@@ -5,12 +5,13 @@ import (
proxytracing "github.com/owncloud/ocis/proxy/pkg/tracing"
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)
func newConn(endpoint string) (*grpc.ClientConn, error) {
conn, err := grpc.Dial(
endpoint,
grpc.WithInsecure(), //TODO: depreciated
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithUnaryInterceptor(
otelgrpc.UnaryClientInterceptor(
otelgrpc.WithTracerProvider(