Skip to content

Commit

Permalink
Merge pull request #1437 from ianco/master
Browse files Browse the repository at this point in the history
Fix issue with cred limit on presentation endpoint
  • Loading branch information
ianco authored Oct 13, 2021
2 parents 4df6500 + 7a6a96a commit 68675f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aries_cloudagent/indy/sdk/holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ async def fetch(reft, limit):
# must move database cursor manually
if start > 0:
await fetch(reft, start)
credentials = await fetch(reft, count - len(creds_dict))
credentials = await fetch(reft, count)

for cred in credentials:
cred_id = cred["cred_info"]["referent"]
Expand All @@ -255,8 +255,6 @@ async def fetch(reft, limit):
creds_dict[cred_id] = cred
else:
creds_dict[cred_id]["presentation_referents"].add(reft)
if len(creds_dict) >= count:
break
finally:
# Always close
await indy.anoncreds.prover_close_credentials_search_for_proof_req(
Expand Down

0 comments on commit 68675f8

Please sign in to comment.