mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
swarm/storage: Fix logging of number of written chunks
Fixes issue https://github.com/ethersphere/go-ethereum/issues/201
This commit is contained in:
parent
0265566534
commit
4e032aeb10
1 changed files with 1 additions and 1 deletions
|
|
@ -615,7 +615,7 @@ func (s *DbStore) writeBatch(b *leveldb.Batch, entryCnt, dataIdx, accessCnt uint
|
|||
b.Put(keyEntryCnt, U64ToBytes(entryCnt))
|
||||
b.Put(keyDataIdx, U64ToBytes(dataIdx))
|
||||
b.Put(keyAccessCnt, U64ToBytes(accessCnt))
|
||||
l := s.batch.Len()
|
||||
l := b.Len()
|
||||
if err := s.db.Write(b); err != nil {
|
||||
log.Error(fmt.Sprintf("unable to write batch: %v", err))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue