fix typo in log warning

very minor but this warning comes up a lot so it'd be nicer if it wasn't a grammatical error too
This commit is contained in:
shotcollin 2021-12-19 17:07:11 -07:00 committed by GitHub
parent dd20829dbe
commit d10d0a20b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ func CreatePartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*PartialF
err := fallocate.Fallocate(f, 0, int64(maxPieceSize))
if errno, ok := err.(syscall.Errno); ok {
if errno == syscall.EOPNOTSUPP || errno == syscall.ENOSYS {
log.Warnf("could not allocated space, ignoring: %v", errno)
log.Warnf("could not allocate space, ignoring: %v", errno)
err = nil // log and ignore
}
}