From 1abb44a3af1d1c3b7c7a1e61b1bee66174b326c8 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sun, 24 Nov 2019 20:54:56 +0100 Subject: [PATCH] consensus/ethash: use remoteSealerTimeout constant --- consensus/ethash/sealer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/ethash/sealer.go b/consensus/ethash/sealer.go index e0dfa4e325..52c4ed46dc 100644 --- a/consensus/ethash/sealer.go +++ b/consensus/ethash/sealer.go @@ -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")