mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 20:41:20 +00:00
708ea9225d
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
17 lines
308 B
Go
17 lines
308 B
Go
package requests
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/ledgerwatch/log/v3"
|
|
)
|
|
|
|
func PingErigonRpc(reqGen *RequestGenerator, logger log.Logger) error {
|
|
res := reqGen.PingErigonRpc()
|
|
if res.Err != nil {
|
|
return fmt.Errorf("failed to ping erigon rpc url: %v", res.Err)
|
|
}
|
|
logger.Info("SUCCESS => OK")
|
|
return nil
|
|
}
|