Skip to content

Commit d4c23db

Browse files
fix: make stateful builder singleton, upgrade context (#112)
1 parent 5a32706 commit d4c23db

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

hypertrace-core-graphql-grpc-utils/src/main/java/org/hypertrace/core/graphql/utils/grpc/PlatformGrpcContextBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
import java.util.Optional;
1515
import java.util.stream.Collectors;
1616
import javax.annotation.Nonnull;
17+
import javax.inject.Singleton;
1718
import org.hypertrace.core.graphql.context.GraphQlRequestContext;
1819
import org.hypertrace.core.grpcutils.context.RequestContext;
1920

21+
@Singleton
2022
class PlatformGrpcContextBuilder implements GrpcContextBuilder {
2123

2224
private final Cache<String, GraphQlRequestContext> contextCache =

hypertrace-core-graphql-platform/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ dependencies {
1010
api(platform("io.grpc:grpc-bom:1.47.0"))
1111
constraints {
1212

13-
api("org.hypertrace.core.grpcutils:grpc-context-utils:0.7.7")
14-
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.7.7")
15-
api("org.hypertrace.core.grpcutils:grpc-client-rx-utils:0.7.7")
16-
api("org.hypertrace.core.grpcutils:grpc-client-rx-utils:0.7.7")
13+
api("org.hypertrace.core.grpcutils:grpc-context-utils:0.8.0")
14+
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.8.0")
15+
api("org.hypertrace.core.grpcutils:grpc-client-rx-utils:0.8.0")
16+
api("org.hypertrace.core.grpcutils:grpc-client-rx-utils:0.8.0")
1717
api("org.hypertrace.gateway.service:gateway-service-api:0.2.13")
1818
api("org.hypertrace.core.attribute.service:caching-attribute-service-client:0.14.8")
1919

0 commit comments

Comments
 (0)