Skip to content
Snippets Groups Projects
Commit 34ad0237 authored by Jonas Leder's avatar Jonas Leder
Browse files

run message worker singlethreaded, as multithreaded is not anymore required

parent 09304f9c
Branches
No related tags found
No related merge requests found
Pipeline #54583 passed
......@@ -20,7 +20,6 @@ func Run() {
continue
}
log.Log.Debug("Received new task: ", taskData)
go func() {
var task types.Task
err = json.Unmarshal([]byte(taskData), &task)
if err != nil {
......@@ -55,6 +54,5 @@ func Run() {
}
database.Db.Create(&valuesToInsert)
log.Log.Info("Stored boiler data in database")
}()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment