修正编译问题

This commit is contained in:
lwch
2022-08-25 17:16:15 +08:00
parent 3f8fc1a811
commit ae6003ee62
2 changed files with 18 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
//go:build windows || aix || darwin
//go:build (windows || aix || darwin) && !go1.17 && !go1.18
// +build windows aix darwin
// +build !go1.17
// +build !go1.18
package limit

View File

@@ -0,0 +1,15 @@
//go:build (windows || aix || darwin) && (go1.17 || go1.18)
// +build windows aix darwin
// +build go1.17 go1.18
package limit
import (
"math"
"runtime"
"runtime/debug"
)
// Do set cgroups limit
func (cfg *Configure) Do(_ string) {
}