ceremonyclient/go-libp2p/p2p/host/resource-manager/sys_not_unix.go
2023-08-20 23:07:43 -05:00

12 lines
279 B
Go

//go:build !linux && !darwin && !windows
package rcmgr
import "runtime"
// TODO: figure out how to get the number of file descriptors on Windows and other systems
func getNumFDs() int {
log.Warnf("cannot determine number of file descriptors on %s", runtime.GOOS)
return 0
}