This commit is contained in:
Łukasz Magiera 2021-03-09 22:33:12 +01:00
parent ca7e70bf3a
commit 9f7d3ed340
2 changed files with 4 additions and 7 deletions

View File

@ -224,7 +224,6 @@ func (b *bbatch) Put(key datastore.Key, value []byte) error {
} }
} }
return b.b.Put(key, value) return b.b.Put(key, value)
} }

View File

@ -57,7 +57,6 @@ func (d *Datastore) startLog(logdir string) error {
} }
} }
go func() { go func() {
defer close(d.closed) defer close(d.closed)
for { for {
@ -127,7 +126,6 @@ func openLog(p string) (*logfile, error) {
} }
log.Infow("log opened", "file", p) log.Infow("log opened", "file", p)
// make sure we're at the end of the file // make sure we're at the end of the file
at, err := f.Seek(0, io.SeekCurrent) at, err := f.Seek(0, io.SeekCurrent)
if err != nil { if err != nil {