status-go/vendor/github.com/raulk/go-watchdog/watchdog_other.go

14 lines
300 B
Go
Raw Normal View History

2022-04-01 16:16:46 +00:00
// +build !linux
package watchdog
import (
"fmt"
"time"
)
// CgroupDriven is only available in Linux. This method will error.
func CgroupDriven(frequency time.Duration, policyCtor PolicyCtor) (err error, stopFn func()) {
return fmt.Errorf("cgroups-driven watchdog: %w", ErrNotSupported), nil
}