wp
This commit is contained in:
@@ -103,14 +103,11 @@ func New(opt Options) (_ *Database, err error) {
|
||||
|
||||
}
|
||||
|
||||
s.worker = worker.NewWorker(worker.WorkerOptions{
|
||||
s.worker = worker.New(worker.Options{
|
||||
Inbox: s.workerInbox,
|
||||
StorageInbox: storageInbox,
|
||||
//Metrics: make(map[uint32]*_metric), FIX
|
||||
Dir: opt.Dir,
|
||||
// SaveToStorage: func(in any) {
|
||||
// fmt.Println("save to storage")
|
||||
// },
|
||||
Dir: opt.Dir,
|
||||
ExitCh: opt.ExitCh,
|
||||
WaitGroup: opt.WaitGroup,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user