Browse Source

go fmt

pull/1171/head
Chris Lu 5 years ago
parent
commit
9ff72f616a
  1. 1
      weed/storage/disk_location.go
  2. 4
      weed/storage/needle_map/compact_map_test.go

1
weed/storage/disk_location.go

@ -155,7 +155,6 @@ func (l *DiskLocation) DeleteCollectionFromDiskLocation(collection string) (e er
e = fmt.Errorf(errBuilder.String()) e = fmt.Errorf(errBuilder.String())
} }
return return
} }

4
weed/storage/needle_map/compact_map_test.go

@ -9,11 +9,11 @@ import (
func TestOverflow2(t *testing.T) { func TestOverflow2(t *testing.T) {
m := NewCompactMap() m := NewCompactMap()
_, oldSize := m.Set(NeedleId(150088), ToOffset(8), 3000073) _, oldSize := m.Set(NeedleId(150088), ToOffset(8), 3000073)
if oldSize!=0{
if oldSize != 0 {
t.Fatalf("expecting no previous data") t.Fatalf("expecting no previous data")
} }
_, oldSize = m.Set(NeedleId(150088), ToOffset(8), 3000073) _, oldSize = m.Set(NeedleId(150088), ToOffset(8), 3000073)
if oldSize!=3000073{
if oldSize != 3000073 {
t.Fatalf("expecting previous data size is %d, not %d", 3000073, oldSize) t.Fatalf("expecting previous data size is %d, not %d", 3000073, oldSize)
} }
m.Set(NeedleId(150073), ToOffset(8), 3000073) m.Set(NeedleId(150073), ToOffset(8), 3000073)

Loading…
Cancel
Save