File tree 1 file changed +2
-3
lines changed
temporal-sdk/src/main/java/io/temporal/client 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 34
34
import java .util .function .Supplier ;
35
35
import javax .annotation .Nullable ;
36
36
37
+ /** Inject the namespace into the gRPC header */
37
38
class NamespaceInjectWorkflowServiceStubs implements WorkflowServiceStubs {
38
39
private static Metadata .Key <String > TEMPORAL_NAMESPACE_HEADER_KEY =
39
40
Metadata .Key .of ("temporal-namespace" , Metadata .ASCII_STRING_MARSHALLER );
40
41
private final Metadata metadata ;
41
- private WorkflowServiceStubs next ;
42
- private String namespace ;
42
+ private final WorkflowServiceStubs next ;
43
43
44
44
public NamespaceInjectWorkflowServiceStubs (WorkflowServiceStubs next , String namespace ) {
45
45
this .next = next ;
46
- this .namespace = namespace ;
47
46
this .metadata = new Metadata ();
48
47
metadata .put (TEMPORAL_NAMESPACE_HEADER_KEY , namespace );
49
48
}
You can’t perform that action at this time.
0 commit comments