Skip to content

Commit

Permalink
fixup! Let each separate task save itself to the results
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed May 16, 2024
1 parent 5ea30b1 commit 92e6afa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/nav/asyncdns.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ def lookup_names():
for name in names:
for deferred in self.lookup(name):
deferred.addCallback(self._extract_records, name)
deferred.addCallback(self._save_result)
deferred.addErrback(self._errback, name)
deferred.addErrback(self._save_result)
deferred.addCallback(self._save_result)
yield deferred

# Limits the number of parallel requests to BATCH_SIZE
Expand Down

0 comments on commit 92e6afa

Please sign in to comment.