From 103a6cf8c912815a79bc02cdce28410a12c2a184 Mon Sep 17 00:00:00 2001 From: Aaron Steinfeld Date: Tue, 27 Sep 2022 21:42:47 -0400 Subject: [PATCH] fix: make stateful builder singleton, upgrade context --- .../graphql/utils/grpc/PlatformGrpcContextBuilder.java | 2 ++ hypertrace-core-graphql-platform/build.gradle.kts | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hypertrace-core-graphql-grpc-utils/src/main/java/org/hypertrace/core/graphql/utils/grpc/PlatformGrpcContextBuilder.java b/hypertrace-core-graphql-grpc-utils/src/main/java/org/hypertrace/core/graphql/utils/grpc/PlatformGrpcContextBuilder.java index 880ec704..6b970775 100644 --- a/hypertrace-core-graphql-grpc-utils/src/main/java/org/hypertrace/core/graphql/utils/grpc/PlatformGrpcContextBuilder.java +++ b/hypertrace-core-graphql-grpc-utils/src/main/java/org/hypertrace/core/graphql/utils/grpc/PlatformGrpcContextBuilder.java @@ -14,9 +14,11 @@ import java.util.Optional; import java.util.stream.Collectors; import javax.annotation.Nonnull; +import javax.inject.Singleton; import org.hypertrace.core.graphql.context.GraphQlRequestContext; import org.hypertrace.core.grpcutils.context.RequestContext; +@Singleton class PlatformGrpcContextBuilder implements GrpcContextBuilder { private final Cache contextCache = diff --git a/hypertrace-core-graphql-platform/build.gradle.kts b/hypertrace-core-graphql-platform/build.gradle.kts index eaa7247c..ae23bd0f 100644 --- a/hypertrace-core-graphql-platform/build.gradle.kts +++ b/hypertrace-core-graphql-platform/build.gradle.kts @@ -10,10 +10,10 @@ dependencies { api(platform("io.grpc:grpc-bom:1.47.0")) constraints { - api("org.hypertrace.core.grpcutils:grpc-context-utils:0.7.7") - api("org.hypertrace.core.grpcutils:grpc-client-utils:0.7.7") - api("org.hypertrace.core.grpcutils:grpc-client-rx-utils:0.7.7") - api("org.hypertrace.core.grpcutils:grpc-client-rx-utils:0.7.7") + api("org.hypertrace.core.grpcutils:grpc-context-utils:0.8.0") + api("org.hypertrace.core.grpcutils:grpc-client-utils:0.8.0") + api("org.hypertrace.core.grpcutils:grpc-client-rx-utils:0.8.0") + api("org.hypertrace.core.grpcutils:grpc-client-rx-utils:0.8.0") api("org.hypertrace.gateway.service:gateway-service-api:0.2.13") api("org.hypertrace.core.attribute.service:caching-attribute-service-client:0.14.8")