Backend: Rename PrismWorker to MetaWorker

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2020-06-29 13:35:38 +02:00
parent 1c72f88e8c
commit 2a24bf293d
5 changed files with 29 additions and 29 deletions

View File

@@ -21,12 +21,12 @@ func Start(conf *config.Config) {
case <-stop:
log.Info("shutting down workers")
ticker.Stop()
mutex.PrismWorker.Cancel()
mutex.MetaWorker.Cancel()
mutex.ShareWorker.Cancel()
mutex.SyncWorker.Cancel()
return
case <-ticker.C:
StartPrism(conf)
StartMeta(conf)
StartShare(conf)
StartSync(conf)
}
@@ -39,11 +39,11 @@ func Stop() {
stop <- true
}
// StartPrism runs the prism worker once.
func StartPrism(conf *config.Config) {
// StartMeta runs the metadata worker once.
func StartMeta(conf *config.Config) {
if !mutex.WorkersBusy() {
go func() {
worker := NewPrism(conf)
worker := NewMeta(conf)
if err := worker.Start(); err != nil {
log.Error(err)
}