refact(servers): Split server table into worker and controller

This commit is contained in:
irenarindos authored and Jeff Mitchell committed 2022-05-09 13:30:01 -04:00
1 parent f748af7b02
commit 9e27605213
39 files changed
+1427 -460

No files matched your search

+3 -3
View File
@@ -334,9 +334,9 @@ func (c *Controller) Start() error {
return fmt.Errorf("error starting controller listeners: %w", err)
}
// Upsert server before starting tickers and scheduler to ensure the server exists
if err := c.upsertServer(c.baseContext); err != nil {
return fmt.Errorf("error upserting server: %w", err)
// Upsert controller before starting tickers and scheduler to ensure the controller exists
if err := c.upsertController(c.baseContext); err != nil {
return fmt.Errorf("error upserting controller: %w", err)
}
if err := c.scheduler.Start(c.baseContext, c.schedulerWg); err != nil {
return fmt.Errorf("error starting scheduler: %w", err)