mirror of
https://github.com/luxfi/sys.git
synced 2026-10-30 15:15:54 +00:00
20 lines
453 B
Go
20 lines
453 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
//go:build windows
|
|
// +build windows
|
|
|
|
package ulimit
|
|
|
|
import log "github.com/luxfi/log"
|
|
|
|
const DefaultFDLimit = 16384
|
|
|
|
// Set is a no-op for windows and will warn if the default is not used.
|
|
func Set(limit uint64, log log.Logger) error {
|
|
if limit != DefaultFDLimit {
|
|
log.Warn("fd-limit is not supported for windows")
|
|
}
|
|
return nil
|
|
}
|