refactor: simplify boomer runner

This commit is contained in:
debugtalk
2021-12-23 22:01:35 +08:00
parent 970734607e
commit 0c0c154a28
5 changed files with 65 additions and 137 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ func (b *Boomer) Run(tasks ...*Task) {
for _, o := range b.outputs {
b.localRunner.addOutput(o)
}
b.localRunner.run()
b.localRunner.start()
}
// RecordTransaction reports a transaction stat.
@@ -142,5 +142,5 @@ func (b *Boomer) Quit() {
log.Warn().Msg("boomer not initialized")
return
}
b.localRunner.close()
b.localRunner.stop()
}