batch -> update

This commit is contained in:
Dmitrii Stepanov 2023-06-16 18:27:18 +03:00
parent 9eb0c7535b
commit c343af0439

View file

@ -52,7 +52,7 @@ func (b *Blobovnicza) Put(prm PutPrm) (PutRes, error) {
bucketName := bucketForSize(sz) bucketName := bucketForSize(sz)
key := addressKey(prm.addr) key := addressKey(prm.addr)
err := b.boltDB.Batch(func(tx *bbolt.Tx) error { err := b.boltDB.Update(func(tx *bbolt.Tx) error {
if b.full() { if b.full() {
return ErrFull return ErrFull
} }