mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
consensus/ethash: use remoteSealerTimeout constant
This commit is contained in:
parent
44f17177e5
commit
1abb44a3af
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ func (s *remoteSealer) sendNotification(ctx context.Context, url string, json []
|
|||
s.ethash.config.Log.Warn("Can't create remote miner notification", "err", err)
|
||||
return
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(ctx, 1*time.Second)
|
||||
ctx, cancel := context.WithTimeout(ctx, remoteSealerTimeout)
|
||||
defer cancel()
|
||||
req = req.WithContext(ctx)
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
|
|
|
|||
Loading…
Reference in a new issue