mirror of https://github.com/hak5/bolt.git
commit
abb4088170
3
batch.go
3
batch.go
|
@ -20,6 +20,9 @@ import (
|
||||||
// take permanent effect only after a successful return is seen in
|
// take permanent effect only after a successful return is seen in
|
||||||
// caller.
|
// caller.
|
||||||
//
|
//
|
||||||
|
// The maximum batch size and delay can be adjusted with DB.MaxBatchSize
|
||||||
|
// and DB.MaxBatchDelay, respectively.
|
||||||
|
//
|
||||||
// Batch is only useful when there are multiple goroutines calling it.
|
// Batch is only useful when there are multiple goroutines calling it.
|
||||||
func (db *DB) Batch(fn func(*Tx) error) error {
|
func (db *DB) Batch(fn func(*Tx) error) error {
|
||||||
errCh := make(chan error, 1)
|
errCh := make(chan error, 1)
|
||||||
|
|
Loading…
Reference in New Issue