mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
influxdb timeout fix
This commit is contained in:
parent
ecaaa1231a
commit
097651c2c7
2 changed files with 1 additions and 1 deletions
|
|
@ -91,6 +91,7 @@ func (r *reporter) makeClient() (err error) {
|
|||
URL: r.url,
|
||||
Username: r.username,
|
||||
Password: r.password,
|
||||
Timeout: 10 * time.Second,
|
||||
})
|
||||
|
||||
return
|
||||
|
|
|
|||
|
|
@ -536,7 +536,6 @@ func (r *LazyChunkReader) join(ctx context.Context, b []byte, off int64, eoff in
|
|||
chunkData, err := r.getter.Get(ctx, Reference(childAddress))
|
||||
if err != nil {
|
||||
metrics.GetOrRegisterResettingTimer("lcr.getter.get.err", nil).UpdateSince(startTime)
|
||||
log.Debug("lazychunkreader.join", "key", fmt.Sprintf("%x", childAddress), "err", err)
|
||||
select {
|
||||
case errC <- fmt.Errorf("chunk %v-%v not found; key: %s", off, off+treeSize, fmt.Sprintf("%x", childAddress)):
|
||||
case <-quitC:
|
||||
|
|
|
|||
Loading…
Reference in a new issue