From bc8fd067f650998d2a3c3f0a32f9940139be5ca0 Mon Sep 17 00:00:00 2001 From: Rubel Hassan Mollik Date: Mon, 24 Jun 2024 14:05:57 +0600 Subject: [PATCH] Remove redundant looping inside escrower recur method --- src/keria/app/agenting.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/keria/app/agenting.py b/src/keria/app/agenting.py index 7c381b6b..8ac447c4 100644 --- a/src/keria/app/agenting.py +++ b/src/keria/app/agenting.py @@ -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):