aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Russell <ryanrussell@users.noreply.github.com>2022-09-15 03:38:04 -0500
committerGitHub <noreply@github.com>2022-09-15 01:38:04 -0700
commit0fc242b0848c8e17932231b05bb799340eefc57a (patch)
treecf08999c05e117841e366203bc7d3b8b061afdef
parentf6d391c9dabca68e7195822e7108b8f71d134edd (diff)
downloadseaweedfs-0fc242b0848c8e17932231b05bb799340eefc57a.tar.xz
seaweedfs-0fc242b0848c8e17932231b05bb799340eefc57a.zip
docs: `panicing` -> `panicking` (#3687)
Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
-rw-r--r--weed/util/chunk_cache/chunk_cache_on_disk.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/chunk_cache/chunk_cache_on_disk.go b/weed/util/chunk_cache/chunk_cache_on_disk.go
index 9252f99eb..3fc9cf0b4 100644
--- a/weed/util/chunk_cache/chunk_cache_on_disk.go
+++ b/weed/util/chunk_cache/chunk_cache_on_disk.go
@@ -128,7 +128,7 @@ func (v *ChunkCacheVolume) getNeedleSlice(key types.NeedleId, offset, length uin
}
wanted := min(int(length), int(nv.Size)-int(offset))
if wanted < 0 {
- // should never happen, but better than panicing
+ // should never happen, but better than panicking
return nil, ErrorOutOfBounds
}
data := make([]byte, wanted)
@@ -151,7 +151,7 @@ func (v *ChunkCacheVolume) readNeedleSliceAt(data []byte, key types.NeedleId, of
}
wanted := min(len(data), int(nv.Size)-int(offset))
if wanted < 0 {
- // should never happen, but better than panicing
+ // should never happen, but better than panicking
return 0, ErrorOutOfBounds
}
if n, err = v.DataBackend.ReadAt(data, nv.Offset.ToActualOffset()+int64(offset)); err != nil {