Skip to content

Commit

Permalink
common/fdlimit: Fix compilation error in freebsd, Raise returns uint64 (
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan authored and wanwiset25 committed Aug 23, 2024
1 parent a1d3b44 commit 075781f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/fdlimit/fdlimit_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func Raise(max uint64) (uint64, error) {
if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &limit); err != nil {
return 0, err
}
return limit.Cur, nil
return uint64(limit.Cur), nil
}

// Current retrieves the number of file descriptors allowed to be opened by this
Expand Down

0 comments on commit 075781f

Please sign in to comment.