Don't attempt to set file descriptor limit.

Recent versions of Go do it at startup, so only print
a warning if the limit is too low.
This commit is contained in:
Juliusz Chroboczek
2024-05-27 00:02:31 +02:00
parent 82de29b6d0
commit 90a0a2e318
3 changed files with 10 additions and 35 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
// +build !linux
//go:build !unix
package limit
func Nofile(desired uint64) (uint64, error) {
return desired, nil
func Nofile() (uint64, error) {
return 0xFFFF, nil
}