From 9798b49a7e3e5af87c896086fabcffc1cf7f5573 Mon Sep 17 00:00:00 2001 From: Florian Schade Date: Mon, 16 Nov 2020 16:50:34 +0100 Subject: [PATCH] use ocis DefaultClient instead of micros DefaultClient --- proxy/pkg/command/server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxy/pkg/command/server.go b/proxy/pkg/command/server.go index a04a7293b..0765bc101 100644 --- a/proxy/pkg/command/server.go +++ b/proxy/pkg/command/server.go @@ -15,7 +15,7 @@ import ( "github.com/coreos/go-oidc" "github.com/justinas/alice" "github.com/micro/cli/v2" - mclient "github.com/micro/go-micro/v2/client" + "github.com/owncloud/ocis/ocis-pkg/service/grpc" "github.com/oklog/run" openzipkin "github.com/openzipkin/zipkin-go" zipkinhttp "github.com/openzipkin/zipkin-go/reporter/http" @@ -246,9 +246,9 @@ func Server(cfg *config.Config) *cli.Command { } func loadMiddlewares(ctx context.Context, l log.Logger, cfg *config.Config) alice.Chain { - accountsClient := acc.NewAccountsService("com.owncloud.api.accounts", mclient.DefaultClient) - rolesClient := settings.NewRoleService("com.owncloud.api.settings", mclient.DefaultClient) - storeClient := storepb.NewStoreService("com.owncloud.api.store", mclient.DefaultClient) + accountsClient := acc.NewAccountsService("com.owncloud.api.accounts", grpc.DefaultClient) + rolesClient := settings.NewRoleService("com.owncloud.api.settings", grpc.DefaultClient) + storeClient := storepb.NewStoreService("com.owncloud.api.store", grpc.DefaultClient) revaClient, err := cs3.GetGatewayServiceClient(cfg.Reva.Address) if err != nil { l.Error().Err(err).