Skip to content

Commit

Permalink
mark fields as final
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Feb 4, 2025
1 parent 780fcc3 commit 1496ae1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,15 @@
import java.util.function.Supplier;
import javax.annotation.Nullable;

/** Inject the namespace into the gRPC header */
class NamespaceInjectWorkflowServiceStubs implements WorkflowServiceStubs {
private static Metadata.Key<String> TEMPORAL_NAMESPACE_HEADER_KEY =
Metadata.Key.of("temporal-namespace", Metadata.ASCII_STRING_MARSHALLER);
private final Metadata metadata;
private WorkflowServiceStubs next;
private String namespace;
private final WorkflowServiceStubs next;

public NamespaceInjectWorkflowServiceStubs(WorkflowServiceStubs next, String namespace) {
this.next = next;
this.namespace = namespace;
this.metadata = new Metadata();
metadata.put(TEMPORAL_NAMESPACE_HEADER_KEY, namespace);
}
Expand Down

0 comments on commit 1496ae1

Please sign in to comment.