Refactor RealFileSystem to use WorkingDir, and ensure clean shutdown with FlushAll
This commit is contained in:
@@ -413,3 +413,10 @@ func (l *Logic) FlushAll() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Shutdown gracefully shuts down the logic goroutine and worker pool.
|
||||
func (l *Logic) Shutdown() {
|
||||
l.FlushAll()
|
||||
l.Done()
|
||||
l.workerPool.Stop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user