Browse Source

chore: make function comment match function name (#6607)

pull/6615/head
NinaLua 2 months ago
committed by GitHub
parent
commit
271505717e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/s3api/chunked_reader_v4.go
  2. 2
      weed/storage/idx/binary_search.go

2
weed/s3api/chunked_reader_v4.go

@ -557,7 +557,7 @@ func isASCIISpace(b byte) bool {
// Constant s3 chunk encoding signature. // Constant s3 chunk encoding signature.
const s3ChunkSignatureStr = ";chunk-signature=" const s3ChunkSignatureStr = ";chunk-signature="
// parses3ChunkExtension removes any s3 specific chunk-extension from buf.
// parseS3ChunkExtension removes any s3 specific chunk-extension from buf.
// For example, // For example,
// //
// "10000;chunk-signature=..." => "10000", "chunk-signature=..." // "10000;chunk-signature=..." => "10000", "chunk-signature=..."

2
weed/storage/idx/binary_search.go

@ -4,7 +4,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/storage/types" "github.com/seaweedfs/seaweedfs/weed/storage/types"
) )
// firstInvalidIndex find the first index the failed lessThanOrEqualToFn function's requirement.
// FirstInvalidIndex find the first index the failed lessThanOrEqualToFn function's requirement.
func FirstInvalidIndex(bytes []byte, lessThanOrEqualToFn func(key types.NeedleId, offset types.Offset, size types.Size) (bool, error)) (int, error) { func FirstInvalidIndex(bytes []byte, lessThanOrEqualToFn func(key types.NeedleId, offset types.Offset, size types.Size) (bool, error)) (int, error) {
left, right := 0, len(bytes)/types.NeedleMapEntrySize-1 left, right := 0, len(bytes)/types.NeedleMapEntrySize-1
index := right + 1 index := right + 1

Loading…
Cancel
Save