Skip to content

Commit

Permalink
rhp/v3: unlock contract in RPCLatestRevision
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Mar 23, 2023
1 parent 64e6a9d commit 782f3fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rhp/v3/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func (sh *SessionHandler) handleRPCLatestRevision(s *rhpv3.Stream) error {
s.WriteResponseErr(contracts.ErrNotFound)
return fmt.Errorf("failed to lock contract: %w", err)
}
defer sh.contracts.Unlock(contract.Revision.ParentID)

resp := &rhpv3.RPCLatestRevisionResponse{
Revision: contract.Revision,
Expand Down

0 comments on commit 782f3fb

Please sign in to comment.