Cleanup and documentation.

This commit is contained in:
mikestefanello 2024-06-22 09:43:24 -04:00
parent 2004d6b139
commit 60a4a107ca
6 changed files with 93 additions and 151 deletions

View file

@ -70,11 +70,9 @@ func NewContainer() *Container {
return c
}
// Shutdown shuts the Container down and disconnects all connections
// Shutdown shuts the Container down and disconnects all connections.
// If the task runner was started, cancel the context to shut it down prior to calling this.
func (c *Container) Shutdown() error {
//if err := c.Tasks.Close(); err != nil {
// return err
//}
if err := c.ORM.Close(); err != nil {
return err
}