Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

go fmt

Chris Luf0b928ff5ea4
diff --git a/weed/storage/volume_write_test.go b/weed/storage/volume_write_test.go
index 4245bdb52a..309f296572 100644
--- a/weed/storage/volume_write_test.go
+++ b/weed/storage/volume_write_test.go
@@ -25,7 +25,7 @@ func TestSearchVolumesWithDeletedNeedles(t *testing.T) {
count := 20
- for i:=1;i<count;i++{
+ for i := 1; i < count; i++ {
n := newRandomNeedle(uint64(i))
_, _, _, err := v.writeNeedle2(n, true, false)
if err != nil {
@@ -33,7 +33,7 @@ func TestSearchVolumesWithDeletedNeedles(t *testing.T) {
}
}
- for i:=1;i<15;i++{
+ for i := 1; i < 15; i++ {
n := newEmptyNeedle(uint64(i))
err := v.nm.Put(n.Id, types.Offset{}, types.TombstoneFileSize)
if err != nil {
@@ -43,7 +43,7 @@ func TestSearchVolumesWithDeletedNeedles(t *testing.T) {
ts1 := time.Now().UnixNano()
- for i:=15;i<count;i++{
+ for i := 15; i < count; i++ {
n := newEmptyNeedle(uint64(i))
_, err := v.doDeleteRequest(n)
if err != nil {
@@ -57,4 +57,4 @@ func TestSearchVolumesWithDeletedNeedles(t *testing.T) {
}
fmt.Printf("offset: %v, isLast: %v\n", offset.ToActualOffset(), isLast)
-}
\ No newline at end of file
+}