mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-02-10 03:40:43 +08:00
don't limit the number of FDs on Windows (#58)
This commit is contained in:
parent
f704ffd0f1
commit
9320db8806
@ -1,4 +1,4 @@
|
|||||||
//go:build !linux && !darwin
|
//go:build !linux && !darwin && !windows
|
||||||
|
|
||||||
package rcmgr
|
package rcmgr
|
||||||
|
|
||||||
|
11
sys_windows.go
Normal file
11
sys_windows.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
|
package rcmgr
|
||||||
|
|
||||||
|
import (
|
||||||
|
"math"
|
||||||
|
)
|
||||||
|
|
||||||
|
func getNumFDs() int {
|
||||||
|
return math.MaxInt
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user