mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
fix(go): fix type conversions for FreeBSD and Windows methods
This commit is contained in:
parent
968af5f934
commit
6d768f0b0a
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue