ceremonyclient/go-libp2p/p2p/net/connmgr/watchdog_no_cgo.go

16 lines
349 B
Go
Raw Normal View History

2023-08-21 03:50:38 +00:00
//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
}
}