diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-10-11 23:23:46 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-10-11 23:23:46 -0700 |
| commit | f0b928ff5ea43ca9dffe9cc851fc134b190ab155 (patch) | |
| tree | 9449dca7061a8d3af4213bec5cc221031497e1cc | |
| parent | 3afa451cdc1352c00dddaf09e5c9a987ef0a5614 (diff) | |
| download | seaweedfs-f0b928ff5ea43ca9dffe9cc851fc134b190ab155.tar.xz seaweedfs-f0b928ff5ea43ca9dffe9cc851fc134b190ab155.zip | |
go fmt
| -rw-r--r-- | weed/storage/volume_write_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/storage/volume_write_test.go b/weed/storage/volume_write_test.go index 4245bdb52..309f29657 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 +} |
