consensus/ethash: use remoteSealerTimeout constant

This commit is contained in:
Felix Lange 2019-11-24 20:54:56 +01:00 committed by GitHub
parent 44f17177e5
commit 1abb44a3af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")