github.com/MetalBlockchain/metalgo@v1.11.9/utils/ulimit/ulimit_windows.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 //go:build windows 5 // +build windows 6 7 package ulimit 8 9 import "github.com/MetalBlockchain/metalgo/utils/logging" 10 11 const DefaultFDLimit = 16384 12 13 // Set is a no-op for windows and will warn if the default is not used. 14 func Set(max uint64, log logging.Logger) error { 15 if max != DefaultFDLimit { 16 log.Warn("fd-limit is not supported for windows") 17 } 18 return nil 19 }