Remove Start() function, rename Stop() to Cancel()

This commit is contained in:
Ingo Oppermann
2024-10-28 17:12:31 +01:00
parent 412fbedea3
commit fbf62bf7e5
7 changed files with 40 additions and 76 deletions

View File

@@ -385,8 +385,6 @@ func (a *api) start(ctx context.Context) error {
return fmt.Errorf("failed to initialize resource manager: %w", err)
}
resources.Start()
a.resources = resources
if cfg.Sessions.Enable {
@@ -1915,7 +1913,7 @@ func (a *api) stop() {
// Stop resource observer
if a.resources != nil {
a.resources.Stop()
a.resources.Cancel()
}
// Stop the session tracker