Skip to content

Commit

Permalink
[sync] clearer variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Schott committed Sep 16, 2020
1 parent 5c732a8 commit 947d74c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maestral/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,7 @@ def _clean_local_events(self, events: List[FileSystemEvent]) -> List[FileSystemE
# COMBINE MOVED AND DELETED EVENTS OF FOLDERS AND THEIR CHILDREN INTO ONE EVENT

# Avoid nested iterations over all events here, they are on the order of O(n^2)
# which becomes costly then the user moves or deletes folder with a large number
# which becomes costly when the user moves or deletes folder with a large number
# of children. Benchmark: aim to stay below 1 sec for 20,000 nested events on
# representative laptops.

Expand All @@ -1941,8 +1941,8 @@ def _clean_local_events(self, events: List[FileSystemEvent]) -> List[FileSystemE

if len(dir_moved_paths) > 0:
child_moved_events: Dict[Tuple[str, str], List[FileSystemEvent]] = dict()
for path in dir_moved_paths:
child_moved_events[path] = []
for paths in dir_moved_paths:
child_moved_events[paths] = []

for event in cleaned_events:
if event.event_type == EVENT_TYPE_MOVED:
Expand Down

0 comments on commit 947d74c

Please sign in to comment.