Cleanup and documentation.
This commit is contained in:
parent
2004d6b139
commit
60a4a107ca
6 changed files with 93 additions and 151 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue