Skip to content

Commit

Permalink
Remove redundant looping inside escrower recur method
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubel Hassan Mollik committed Jun 24, 2024
1 parent 7988c97 commit bc8fd06
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/keria/app/agenting.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,18 +752,17 @@ def __init__(self, kvy, rgy, rvy, tvy, exc, vry, registrar, credentialer):

def recur(self, tyme=None):
""" Process all escrows once per loop. """
while True:
self.kvy.processEscrows()
self.kvy.processEscrowDelegables()
self.rgy.processEscrows()
self.rvy.processEscrowReply()
if self.tvy is not None:
self.tvy.processEscrows()
self.exc.processEscrow()
self.vry.processEscrows()
self.registrar.processEscrows()
self.credentialer.processEscrows()
yield self.tock
self.kvy.processEscrows()
self.kvy.processEscrowDelegables()
self.rgy.processEscrows()
self.rvy.processEscrowReply()
if self.tvy is not None:
self.tvy.processEscrows()
self.exc.processEscrow()
self.vry.processEscrows()
self.registrar.processEscrows()
self.credentialer.processEscrows()
return False


def loadEnds(app):
Expand Down

0 comments on commit bc8fd06

Please sign in to comment.