This commit is contained in:
parent
b802d878f3
commit
fe3212506d
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ func Walk(directory string, callBack func(string)) error {
|
|||
}
|
||||
|
||||
defer syscall.Close(fd)
|
||||
buffer := make([]byte, 1024)
|
||||
buffer := make([]byte, 512)
|
||||
|
||||
for {
|
||||
n, err := syscall.ReadDirent(fd, buffer)
|
||||
|
|
|
@ -30,7 +30,7 @@ func BenchmarkReaddirnames(b *testing.B) {
|
|||
func(string) {}(file)
|
||||
}
|
||||
|
||||
f.Close()
|
||||
assert.Nil(b, f.Close())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue