Skip to content

Commit

Permalink
increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
olomix committed Oct 18, 2023
1 parent b3e2a43 commit 05d2ee3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/polygonid/polygonid.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ func PLGNSigV2Inputs(jsonResponse **C.char, in *C.char,
return false
}

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

inData := C.GoBytes(unsafe.Pointer(in), C.int(C.strlen(in)))
Expand Down Expand Up @@ -664,7 +664,7 @@ func PLGNAtomicQueryMtpV2Inputs(jsonResponse **C.char, in *C.char, cfg *C.char,
func PLGNMtpV2Inputs(jsonResponse **C.char, in *C.char,
status **C.PLGNStatus) bool {

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

if jsonResponse == nil {
Expand Down Expand Up @@ -773,7 +773,7 @@ func prepareInputs(fn atomicQueryInputsFn,
return false
}

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

inData := C.GoBytes(unsafe.Pointer(in), C.int(C.strlen(in)))
Expand Down

0 comments on commit 05d2ee3

Please sign in to comment.