Skip to content

Commit 7e88985

Browse files
committed
Update core submodule so that TLS object is not auto-created. Ruby SDK now sets TLS to True if api key provided with no TLS configuration (default TLS config)
1 parent aa3704d commit 7e88985

File tree

4 files changed

+15
-222
lines changed

4 files changed

+15
-222
lines changed

temporalio/Cargo.lock

Lines changed: 0 additions & 218 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/lib/temporalio/env_config.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,18 @@ def to_client_connect_options
215215
positional_args = [address, namespace].compact
216216
keyword_args = {
217217
api_key: api_key,
218-
tls: tls&.to_client_tls_options,
219218
rpc_metadata: (grpc_meta if grpc_meta && !grpc_meta.empty?)
220219
}.compact
221220

221+
if api_key
222+
# Enable TLS with default TLS options
223+
keyword_args[:tls] = true
224+
end
225+
if tls
226+
# Use specified TLS options
227+
keyword_args[:tls] = tls.to_client_tls_options
228+
end
229+
222230
[positional_args, keyword_args]
223231
end
224232
end

0 commit comments

Comments
 (0)