Skip to content

Commit ada6275

Browse files
committed
increase timeout
1 parent 7ce03e2 commit ada6275

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

code/go/0chain.net/blobbercore/challenge/protocol.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ func (cr *ChallengeEntity) LoadValidationTickets(ctx context.Context) error {
222222
allocMu.RUnlock()
223223

224224
postDataBytes, err := json.Marshal(postData)
225+
logging.Logger.Info("[challenge]post: ", zap.Any("challenge_id", cr.ChallengeID), zap.Any("post_data_len", len(postData)/(1024*1024)))
225226
if err != nil {
226227
logging.Logger.Error("[db]form: " + err.Error())
227228
cr.CancelChallenge(ctx, err)

code/go/0chain.net/core/util/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewHTTPRequest(method, url string, data []byte) (*http.Request, context.Con
2727
req.Header.Set("X-App-Client-ID", node.Self.ID)
2828
req.Header.Set("X-App-Client-Key", node.Self.PublicKey)
2929
req.Header.Set("X-App-Request-Hash", requestHash)
30-
ctx, cncl := context.WithTimeout(context.Background(), time.Second*10)
30+
ctx, cncl := context.WithTimeout(context.Background(), time.Second*60)
3131
return req, ctx, cncl, err
3232
}
3333

0 commit comments

Comments
 (0)