Skip to content

Commit

Permalink
Merge pull request #1721 from 0chain/fix/update-timeout
Browse files Browse the repository at this point in the history
Increase timeout for fetching marker
  • Loading branch information
dabasov authored Jan 2, 2025
2 parents 83fa6ca + ac3f0db commit 37a5ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zboxcore/sdk/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ func GetWritemarker(allocID, allocTx, sig, id, baseUrl string, clientId ...strin
if err != nil {
return nil, err
}
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
for retries := 0; retries < 3; retries++ {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

resp, err := zboxutil.Client.Do(req.WithContext(ctx))
if err != nil {
Expand Down

0 comments on commit 37a5ac0

Please sign in to comment.