mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 12:19:37 -06:00
Merge pull request #6905 from owncloud/excds/feature/Separate_out_grpc_client_to_package_local_for_userlog_service
Separate out grpc client to package local for userlog service.
This commit is contained in:
@@ -61,7 +61,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
err = ogrpc.Configure(
|
||||
grpcClient, err := ogrpc.NewClient(
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithTraceProvider(tracerProvider))...,
|
||||
)
|
||||
if err != nil {
|
||||
@@ -110,9 +110,9 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
return fmt.Errorf("could not get reva client selector: %s", err)
|
||||
}
|
||||
|
||||
hClient := ehsvc.NewEventHistoryService("com.owncloud.api.eventhistory", ogrpc.DefaultClient())
|
||||
vClient := settingssvc.NewValueService("com.owncloud.api.settings", ogrpc.DefaultClient())
|
||||
rClient := settingssvc.NewRoleService("com.owncloud.api.settings", ogrpc.DefaultClient())
|
||||
hClient := ehsvc.NewEventHistoryService("com.owncloud.api.eventhistory", grpcClient)
|
||||
vClient := settingssvc.NewValueService("com.owncloud.api.settings", grpcClient)
|
||||
rClient := settingssvc.NewRoleService("com.owncloud.api.settings", grpcClient)
|
||||
|
||||
{
|
||||
server, err := http.Server(
|
||||
|
||||
Reference in New Issue
Block a user