ceremonyclient/go-libp2p/p2p/net/connmgr/watchdog_no_cgo.go
2023-08-20 23:07:43 -05:00

16 lines
349 B
Go

//go:build !cgo || nowatchdog
package connmgr
func registerWatchdog(func()) (unregister func()) {
return nil
}
// WithEmergencyTrim is an option to enable trimming connections on memory emergency.
func WithEmergencyTrim(enable bool) Option {
return func(cfg *config) error {
log.Warn("platform doesn't support go-watchdog")
return nil
}
}