Skip to content

Commit 3cbdfde

Browse files
author
Szymon Szyszkowski
committed
fix: dropped client execution during code interpretation
1 parent 8da9f64 commit 3cbdfde

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ot_orchestration/utils/path.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ class GCSPath(ProtoPath):
113113
client (storage.Client, optional): Google Cloud Storage client. Defaults to storage.Client().
114114
"""
115115

116-
def __init__(
117-
self, gcs_path: str, chunk_size: int = 1024 * 256, client=storage.Client()
118-
):
116+
def __init__(self, gcs_path: str, chunk_size: int = 1024 * 256, client=None):
117+
client = client or storage.Client()
119118
self.gcs_path = gcs_path
120119
self.path_pattern = re.compile("^(gs://)?(?P<bucket_name>[(\\w)-]+)")
121120
self.chunk_size = chunk_size

0 commit comments

Comments
 (0)