integrate events into the servers (#1355)

This commit is contained in:
Jim authored and GitHub committed 2021-07-08 15:50:25 -04:00
1 parent ec7577c5fe
commit 1daa3ebefe
37 files changed
+2081 -298

No files matched your search

@@ -195,6 +195,11 @@ func (c *Controller) Shutdown(serversOnly bool) error {
return fmt.Errorf("error stopping controller listeners: %w", err)
}
c.started.Store(false)
if c.conf.Eventer != nil {
if err := c.conf.Eventer.FlushNodes(context.Background()); err != nil {
return fmt.Errorf("error flushing controller eventer nodes: %w", err)
}
}
return nil
}