mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-06 18:10:26 +08:00
优化缓存数据库相关代码
This commit is contained in:
@@ -31,7 +31,7 @@ func NewBatch(db *DB, n int) *Batch {
|
||||
var batch = &Batch{
|
||||
db: db,
|
||||
n: n,
|
||||
queue: make(chan *batchItem),
|
||||
queue: make(chan *batchItem, 16),
|
||||
closeEvent: make(chan bool, 1),
|
||||
}
|
||||
db.batches = append(db.batches, batch)
|
||||
|
||||
Reference in New Issue
Block a user