mirror of https://github.com/hak5/bolt.git
Add batch size and delay docs
This commit adds documentation for batch size and delay to the DB.Batch() call. Previously there was no reference to these properties from the Batch() call so it was nearly impossible for anyone to know to adjust these settings. Thanks to Kelly Sommers for bringing the doc issue to my attention.master
parent
5eb31d5821
commit
696f3a3ada
3
batch.go
3
batch.go
|
@ -20,6 +20,9 @@ import (
|
|||
// take permanent effect only after a successful return is seen in
|
||||
// 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.
|
||||
func (db *DB) Batch(fn func(*Tx) error) error {
|
||||
errCh := make(chan error, 1)
|
||||
|
|
Loading…
Reference in New Issue