Skip to content

Commit 02208c5

Browse files
author
Andrei Neagu
committed
feedback
1 parent 0cbc148 commit 02208c5

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

services/storage/src/simcore_service_storage/utils/simcore_s3_dsm_utils.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,13 @@ async def create_and_upload_export(
158158
progress_report_cb=progress_cb,
159159
)
160160

161-
archive_entries: ArchiveEntries = []
162-
for s3_object in source_object_keys:
163-
archive_entries.append(
164-
(
165-
s3_object,
166-
await s3_client.get_bytes_streamer_from_object(bucket, s3_object),
167-
)
161+
archive_entries: ArchiveEntries = [
162+
(
163+
s3_object,
164+
await s3_client.get_bytes_streamer_from_object(bucket, s3_object),
168165
)
166+
for s3_object in source_object_keys
167+
]
169168

170169
async with progress_bar:
171170
await s3_client.upload_object_from_file_like(

services/storage/tests/unit/test_simcore_s3_dsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async def paths_for_export(
183183

184184
upload_result: tuple[NodeID, dict[SimcoreS3FileID, FileIDDict]] = (
185185
await populate_directory(
186-
TypeAdapter(ByteSize).validate_python("10MiB"),
186+
TypeAdapter(ByteSize).validate_python("1KiB"),
187187
dir_name,
188188
project_id,
189189
node_id,

0 commit comments

Comments
 (0)