Skip to content

Commit

Permalink
Set Escrower tock to 30.0 to increse cycle time of escrow processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubel Hassan Mollik committed Jun 14, 2024
1 parent abf66f2 commit 7c6730c
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/keria/app/agenting.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,23 +745,25 @@ def __init__(self, kvy, rgy, rvy, tvy, exc, vry, registrar, credentialer):
self.vry = vry
self.registrar = registrar
self.credentialer = credentialer
self.tock = 30.0

super(Escrower, self).__init__()
super(Escrower, self).__init__(tock=self.tock)

def recur(self, tyme):
def recur(self, tyme=None):
""" Process all escrows once per loop. """
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()
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()

return False
yield self.tock


def loadEnds(app):
Expand Down

0 comments on commit 7c6730c

Please sign in to comment.