Browse Source

go fmt

pull/2380/head
Chris Lu 3 years ago
parent
commit
e4830bd93d
  1. 2
      weed/util/skiplist/skiplist.go
  2. 1
      weed/util/skiplist/skiplist_test.go

2
weed/util/skiplist/skiplist.go

@ -467,7 +467,7 @@ func (t *SkipList) GetSmallestNode() (*SkipListElement, error) {
func (t *SkipList) GetLargestNode() (*SkipListElement, error) {
return t.LoadElement(t.EndLevels[0])
}
func (t *SkipList) GetLargestNodeReference() (*SkipListElementReference) {
func (t *SkipList) GetLargestNodeReference() *SkipListElementReference {
return t.EndLevels[0]
}

1
weed/util/skiplist/skiplist_test.go

@ -30,7 +30,6 @@ func TestReverseInsert(t *testing.T) {
}
func TestInsertAndFind(t *testing.T) {
k0 := []byte("0")

Loading…
Cancel
Save