Skip to content

Commit

Permalink
Merge pull request #2391 from Indicio-tech/fix/keylist-update-respons…
Browse files Browse the repository at this point in the history
…e-race

fix: keylist update response race condition
  • Loading branch information
dbluhm authored Aug 2, 2023
2 parents 34743f6 + dea39bb commit ad702a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aries_cloudagent/protocols/didexchange/v1_0/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,7 @@ async def create_request(
method=SOV,
key_type=ED25519,
)
conn_rec.my_did = my_info.did

# Idempotent; if routing has already been set up, no action taken
await self._route_manager.route_connection_as_invitee(
self.profile, conn_rec, mediation_record
)
conn_rec.my_did = my_info.did

# Create connection request message
if my_endpoint:
Expand Down Expand Up @@ -362,6 +357,11 @@ async def create_request(
async with self.profile.session() as session:
await conn_rec.save(session, reason="Created connection request")

# Idempotent; if routing has already been set up, no action taken
await self._route_manager.route_connection_as_invitee(
self.profile, conn_rec, mediation_record
)

return request

async def receive_request(
Expand Down

0 comments on commit ad702a1

Please sign in to comment.