fix some TODOs

This commit is contained in:
Willy Kloucek
2022-01-07 16:07:34 +00:00
committed by Jörn Friedrich Dreyer
parent ae565846c2
commit 41403d7952
3 changed files with 11 additions and 11 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(