mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-31 03:58:36 +00:00
Remove parent context
This commit is contained in:
parent
a8be551cf4
commit
bc2ace94ee
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
package health
|
package health
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
|
@ -12,7 +13,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func checkSynced(ec ethClient, r *http.Request) error {
|
func checkSynced(ec ethClient, r *http.Request) error {
|
||||||
i, err := ec.SyncProgress(r.Context())
|
i, err := ec.SyncProgress(context.TODO())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Root().Warn("Unable to check sync status for healthcheck", "err", err.Error())
|
log.Root().Warn("Unable to check sync status for healthcheck", "err", err.Error())
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue