fix(go): fix type conversions for FreeBSD and Windows methods
This commit is contained in:
parent
968af5f934
commit
6d768f0b0a
@ -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)
|
||||
|
@ -3,4 +3,4 @@
|
||||
|
||||
package chat
|
||||
|
||||
func setSystemConcurrentConnectionLimit(limit int64) {}
|
||||
func setSystemConcurrentConnectionLimit(limit uint64) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user