Skip to content

Commit 650c5a2

Browse files
committed
fix erroneus change to upload
1 parent f4ce24d commit 650c5a2

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

synapseutils/sync.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -524,24 +524,22 @@ def _build_tasks_from_dependency_graph(
524524

525525
return created_tasks_by_path.values()
526526

527-
async def upload(self, items: Iterable[_SyncUploadItem]) -> List["File"]:
527+
async def upload(self, items: Iterable[_SyncUploadItem]) -> None:
528528
"""Upload a number of files to Synapse as provided in the manifest file. This
529529
will handle ordering the files based on their dependency graph.
530530
531531
Arguments:
532532
items: The list of items to upload.
533533
534534
Returns:
535-
List of File entities that were created or updated, in the same
536-
order as the dependency-graph task execution.
535+
None
537536
"""
538537
dependency_graph = self._build_dependency_graph(items=[i for i in items])
539538
tasks = self._build_tasks_from_dependency_graph(
540539
dependency_graph=dependency_graph
541540
)
542541

543-
results = await asyncio.gather(*tasks)
544-
return list(results)
542+
await asyncio.gather(*tasks)
545543

546544
def _build_activity_linkage(
547545
self, used_or_executed: Iterable[str], resolved_file_ids: Dict[str, str]

0 commit comments

Comments
 (0)