Skip to content

Commit 84dc75e

Browse files
authored
fix(slurpitsync): process interfaces synchronously instead of concurrently (#115)
1 parent 224ad84 commit 84dc75e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

infrahub_sync/adapters/slurpitsync.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,8 @@ def normalize_and_find_prefix(entry):
148148

149149
return entry
150150

151-
# Concurrent execution of tasks
152-
tasks = [normalize_and_find_prefix(entry) for entry in interfaces if entry.get("IP")]
153-
154-
# Run tasks concurrently
155-
filtered_interfaces = await asyncio.gather(*tasks)
151+
# Process interfaces synchronously (normalize_and_find_prefix is not async)
152+
filtered_interfaces = [normalize_and_find_prefix(entry) for entry in interfaces if entry.get("IP")]
156153

157154
results = [entry for entry in filtered_interfaces if entry]
158155

0 commit comments

Comments
 (0)