This commit is contained in:
2026-06-14 07:57:01 +03:00
parent 685c48f94f
commit 181031a753
14 changed files with 626 additions and 591 deletions

View File

@@ -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,
})