Skip to content

Commit

Permalink
increase timeout for fetching marker
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Jan 2, 2025
1 parent 83fa6ca commit ac3f0db
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 ac3f0db

Please sign in to comment.