mirror of
https://github.com/taigrr/bitcask
synced 2025-01-18 04:03:17 -08:00
fix go vet (#80)
This commit is contained in:
parent
abbbeb8e1d
commit
877bf982b1
@ -176,7 +176,7 @@ func (b *Bitcask) Put(key, value []byte) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
item := internal.Item{b.curr.FileID(), offset, n}
|
item := internal.Item{FileID: b.curr.FileID(), Offset: offset, Size: n}
|
||||||
b.mu.Lock()
|
b.mu.Lock()
|
||||||
b.trie.Insert(key, item)
|
b.trie.Insert(key, item)
|
||||||
b.mu.Unlock()
|
b.mu.Unlock()
|
||||||
@ -371,7 +371,7 @@ func (b *Bitcask) reopen() error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
item := internal.Item{ids[i], e.Offset, n}
|
item := internal.Item{FileID: ids[i], Offset: e.Offset, Size: n}
|
||||||
t.Insert(e.Key, item)
|
t.Insert(e.Key, item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user