erigon-pulse/cmd/devnet/commands/request.go
ledgerwatch a8ec9eb471
[devnet tool] Use logging instead of fmt.Printf (#7560)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-05-22 08:46:50 +01:00

16 lines
340 B
Go

package commands
import (
"github.com/ledgerwatch/erigon/cmd/devnet/models"
"github.com/ledgerwatch/erigon/cmd/devnet/requests"
"github.com/ledgerwatch/log/v3"
)
func pingErigonRpc(logger log.Logger) error {
err := requests.PingErigonRpc(models.ReqId, logger)
if err != nil {
logger.Error("FAILURE", "error", err)
}
return err
}