Skip to content

Commit

Permalink
rhpv2: increase timeout when writing merkle proof
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl authored and n8maninger committed Jun 5, 2024
1 parent 57ca510 commit cdd3745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rhp/v2/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ func (sh *SessionHandler) rpcWrite(s *session, log *zap.Logger) (contracts.Usage
if req.MerkleProof {
writeResp.OldSubtreeHashes, writeResp.OldLeafHashes = rhp2.BuildDiffProof(req.Actions, oldRoots)
}
if err := s.writeResponse(writeResp, time.Minute); err != nil {
if err := s.writeResponse(writeResp, 5*time.Minute); err != nil {
return contracts.Usage{}, fmt.Errorf("failed to write merkle proof: %w", err)
}

Expand Down

0 comments on commit cdd3745

Please sign in to comment.