Skip to content

Commit b8537d0

Browse files
Update to Java SDK v1.28.1 (temporalio#724)
1 parent c6a092e commit b8537d0

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ subprojects {
2828
ext {
2929
otelVersion = '1.30.1'
3030
otelVersionAlpha = "${otelVersion}-alpha"
31-
javaSDKVersion = '1.28.0'
31+
javaSDKVersion = '1.28.1'
3232
camelVersion = '3.22.1'
3333
jarVersion = '1.0.0'
3434
}

core/src/main/java/io/temporal/samples/nexus/options/ClientOptions.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@
1919

2020
package io.temporal.samples.nexus.options;
2121

22-
import io.grpc.Metadata;
2322
import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts;
2423
import io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder;
2524
import io.grpc.netty.shaded.io.netty.handler.ssl.util.InsecureTrustManagerFactory;
26-
import io.grpc.stub.MetadataUtils;
2725
import io.temporal.client.WorkflowClient;
2826
import io.temporal.client.WorkflowClientOptions;
2927
import io.temporal.serviceclient.WorkflowServiceStubs;
@@ -137,14 +135,6 @@ public static WorkflowClient getWorkflowClient(String[] args) {
137135
if (!apiKey.isEmpty()) {
138136
serviceStubOptionsBuilder.setEnableHttps(true);
139137
serviceStubOptionsBuilder.addApiKey(() -> apiKey);
140-
Metadata.Key<String> TEMPORAL_NAMESPACE_HEADER_KEY =
141-
Metadata.Key.of("temporal-namespace", Metadata.ASCII_STRING_MARSHALLER);
142-
Metadata metadata = new Metadata();
143-
metadata.put(TEMPORAL_NAMESPACE_HEADER_KEY, namespace);
144-
serviceStubOptionsBuilder.setChannelInitializer(
145-
(channel) -> {
146-
channel.intercept(MetadataUtils.newAttachHeadersInterceptor(metadata));
147-
});
148138
}
149139

150140
WorkflowServiceStubs service =

0 commit comments

Comments
 (0)