Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

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

Gabe Kangasee14c0abbdb2
diff --git a/core/chat/concurrentConnections_freebsd.go b/core/chat/concurrentConnections_freebsd.go
index 68d4955b32..22b75792a3 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 ef61843b3c..a13349ccfd 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) {}