This commit is contained in:
Łukasz Magiera
2020-03-22 22:39:27 +01:00
parent d43f2a2e3b
commit cd618dfdbd
4 changed files with 20 additions and 15 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ func TestManageFdLimit(t *testing.T) {
t.Errorf("Cannot manage file descriptors")
}
if maxFds != uint64(16 << 10) {
if maxFds != uint64(16<<10) {
t.Errorf("Maximum file descriptors default value changed")
}
}
@@ -81,4 +81,4 @@ func TestManageFdLimitWithEnvSet(t *testing.T) {
if err = os.Unsetenv("IPFS_FD_MAX"); err != nil {
t.Fatal("Cannot unset the IPFS_FD_MAX env variable")
}
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
package ulimit
import (
unix "golang.org/x/sys/unix"
unix "golang.org/x/sys/unix"
)
func init() {