mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
lower timeouts
This commit is contained in:
parent
6df2cad221
commit
fc8ff6d993
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultSearchTimeout = 8 * time.Second
|
defaultSearchTimeout = 4 * time.Second
|
||||||
// maximum number of forwarded requests (hops), to make sure requests are not
|
// maximum number of forwarded requests (hops), to make sure requests are not
|
||||||
// forwarded forever in peer loops
|
// forwarded forever in peer loops
|
||||||
maxHopCount uint8 = 20
|
maxHopCount uint8 = 20
|
||||||
|
|
@ -38,7 +38,7 @@ const (
|
||||||
|
|
||||||
// Time to consider peer to be skipped.
|
// Time to consider peer to be skipped.
|
||||||
// Also used in stream delivery.
|
// Also used in stream delivery.
|
||||||
var RequestTimeout = 26 * time.Second
|
var RequestTimeout = 15 * time.Second
|
||||||
|
|
||||||
type RequestFunc func(context.Context, *Request) (*enode.ID, chan struct{}, error)
|
type RequestFunc func(context.Context, *Request) (*enode.ID, chan struct{}, error)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue