diff --git a/core/chat/concurrentConnections_freebsd.go b/core/chat/concurrentConnections_freebsd.go index 68d4955b3..22b75792a 100644 --- a/core/chat/concurrentConnections_freebsd.go +++ b/core/chat/concurrentConnections_freebsd.go @@ -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) diff --git a/core/chat/concurrentConnections_windows.go b/core/chat/concurrentConnections_windows.go index ef61843b3..a13349ccf 100644 --- a/core/chat/concurrentConnections_windows.go +++ b/core/chat/concurrentConnections_windows.go @@ -3,4 +3,4 @@ package chat -func setSystemConcurrentConnectionLimit(limit int64) {} +func setSystemConcurrentConnectionLimit(limit uint64) {}