diff --git a/clientv3/lease.go b/clientv3/lease.go index 30552fb36..a91b33502 100644 --- a/clientv3/lease.go +++ b/clientv3/lease.go @@ -354,8 +354,8 @@ func (l *lessor) recvKeepAlive(resp *pb.LeaseKeepAliveResponse) { } } -// deadlineLoop reaps any keep alive channels that have not recieved a resposne within -// the lease TTL +// deadlineLoop reaps any keep alive channels that have not received a response +// within the lease TTL func (l *lessor) deadlineLoop() { for { select { diff --git a/pkg/fileutil/preallocate_unix.go b/pkg/fileutil/preallocate_unix.go index 60c68202a..50bd84f02 100644 --- a/pkg/fileutil/preallocate_unix.go +++ b/pkg/fileutil/preallocate_unix.go @@ -27,7 +27,7 @@ func preallocExtend(f *os.File, sizeInBytes int64) error { if err != nil { errno, ok := err.(syscall.Errno) // not supported; fallback - // fallocate EINTRs frequently in some enviroments; fallback + // fallocate EINTRs frequently in some environments; fallback if ok && (errno == syscall.ENOTSUP || errno == syscall.EINTR) { return preallocExtendTrunc(f, sizeInBytes) }