Merge pull request #1320 from bbx-winner/master

fix: set ulimit error
This commit is contained in:
debugtalk
2022-05-26 21:29:55 +08:00
committed by GitHub

View File

@@ -23,6 +23,7 @@ func SetUlimit(limit uint64) {
}
rLimit.Cur = limit
rLimit.Max = limit
log.Info().Uint64("limit", rLimit.Cur).Msg("set current ulimit")
err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit)
if err != nil {