(c *container.C, earlyStop bool)
| 400 | } |
| 401 | |
| 402 | func moduleStop(c *container.C, earlyStop bool) error { |
| 403 | if earlyStop { |
| 404 | if err := c.Lifetime.EarlyStopAll(); err != nil { |
| 405 | c.DefaultLogger.Error("early stop failed", err) |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | return c.Lifetime.StopAll() |
| 410 | } |
| 411 | |
| 412 | func moduleMain(configPath string) error { |
| 413 | log.DefaultLogger.Msg("loading configuration...") |
no test coverage detected