Remove parent context

This commit is contained in:
crypto-services 2024-02-20 14:54:55 +08:00
parent a8be551cf4
commit bc2ace94ee

View file

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