Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
fix: Windows sysctl call (#340)
Browse files Browse the repository at this point in the history

#### Summary

<!--
Explain what problem this PR addresses
-->

---
  • Loading branch information
roneli authored Jun 15, 2022
1 parent 85c33ca commit 464529d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions helpers/limit/sysctl_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//go:build windows

package limit

import "errors"

func calculateFileLimit() (uint64, error) {
return 0, errors.New("file descriptors limiter not supported in windows")
}
4 changes: 3 additions & 1 deletion helpers/limit/ulimit_win.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

package limit

import "errors"

func GetUlimit() (Rlimit, error) {
return Rlimit{0, 0}, nil
return Rlimit{0, 0}, errors.New("ulimit not supported in windows")
}

0 comments on commit 464529d

Please sign in to comment.