lib/net/ping.go
Function goPingWrap
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func goPingWrap(ctx context.Context, address string, count int, timeout, interval time.Duration, pingFunc func(ctx context.Context, address string, timeout time.Duration) (time.Duration, error)) ([]time.Duration, error) {
Function starTCPPing
has 5 return statements (exceeds 4 allowed). Open
Open
func starTCPPing(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
var (
hostname tps.StringOrBytes
port = 80
count = 4
Function httpPingFunc
has 5 return statements (exceeds 4 allowed). Open
Open
func httpPingFunc(ctx context.Context, url string, timeout time.Duration) (time.Duration, error) {
// create a custom http client tracing
var (
onceStart, onceDone sync.Once
connStart time.Time