Skip to content

Commit c0052e6

Browse files
committed
s/direct_path_prefix/direct_path_separator
1 parent af3a21b commit c0052e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google/api_core/grpc_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ def _modify_target_for_direct_path(target: str) -> str:
411411
# the Direct Path prefix `google-c2p:///` will be used instead.
412412
target = target.replace(dns_prefix, "")
413413

414-
direct_path_prefix = ":///"
415-
if direct_path_prefix not in target:
414+
direct_path_separator = ":///"
415+
if direct_path_separator not in target:
416416
target_without_port = target.split(":")[0]
417417
# Modify the target to use Direct Path by adding the `google-c2p:///` prefix
418-
target = f"google-c2p{direct_path_prefix}{target_without_port}"
418+
target = f"google-c2p{direct_path_separator}{target_without_port}"
419419
return target
420420

421421

0 commit comments

Comments
 (0)