extend deadline

This commit is contained in:
Ian Norden 2021-02-27 10:31:40 -06:00
parent a181a5c25b
commit 86e9edd3d1

View File

@ -918,7 +918,7 @@ func (pea *PublicEthAPI) writeStateDiffAt(height int64) {
return
}
// we use a separate context than the one provided by the client
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 240*time.Second)
defer cancel()
var data json.RawMessage
params := statediff.Params{
@ -940,7 +940,7 @@ func (pea *PublicEthAPI) writeStateDiffFor(blockHash common.Hash) {
return
}
// we use a separate context than the one provided by the client
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 240*time.Second)
defer cancel()
var data json.RawMessage
params := statediff.Params{