fix(go): fix type conversions for FreeBSD and Windows methods

This commit is contained in:
Gabe Kangas 2024-09-17 08:27:40 -07:00
parent 968af5f934
commit 6d768f0b0a
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ import (
log "github.com/sirupsen/logrus"
)
func setSystemConcurrentConnectionLimit(limit int64) {
func setSystemConcurrentConnectionLimit(limit uint64) {
var rLimit syscall.Rlimit
if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rLimit); err != nil {
log.Fatalln(err)

View file

@ -3,4 +3,4 @@
package chat
func setSystemConcurrentConnectionLimit(limit int64) {}
func setSystemConcurrentConnectionLimit(limit uint64) {}