Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
cf1565a508
|
@@ -406,9 +406,7 @@ func (e *Engine) Start(ctx context.Context) {
|
|||||||
e.writerWG.Add(1)
|
e.writerWG.Add(1)
|
||||||
go e.dbWriter(ctx)
|
go e.dbWriter(ctx)
|
||||||
|
|
||||||
e.checkerWG.Add(1)
|
|
||||||
go func() {
|
go func() {
|
||||||
defer e.checkerWG.Done()
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
@@ -464,11 +462,7 @@ func (e *Engine) Start(ctx context.Context) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
e.checkerWG.Add(1)
|
go e.maintenancePruner(ctx)
|
||||||
go func() {
|
|
||||||
defer e.checkerWG.Done()
|
|
||||||
e.maintenancePruner(ctx)
|
|
||||||
}()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *Engine) maintenancePruner(ctx context.Context) {
|
func (e *Engine) maintenancePruner(ctx context.Context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user