@@ -16,11 +16,11 @@ const (
1616 darwinOpenMax = 10240
1717)
1818
19−// MaximizeOpenFileLimit tries to set the resource limit RLIMIT_NOFILE (number
19+// maximizeOpenFileLimit tries to set the resource limit RLIMIT_NOFILE (number
2020// of open file descriptors) to the max (hard limit), if the current (soft
2121// limit) is below the max. Returns the new (though possibly unchanged) limit,
2222// or an error if it could not be changed.
23−func MaximizeOpenFileLimit() (int, error) {
23+func maximizeOpenFileLimit() (int, error) {
2424 // Get the current limit on number of open files.
2525 var lim syscall.Rlimit
2626 if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &lim); err != nil {