mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
common/fdlimit: Fix compilation error in freebsd, Raise() returns uint64
cast limit.Cur (int64) to uint64, fix test and compilation error
This commit is contained in:
parent
f49f95e2b0
commit
5944e1823f
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue