diff options
Diffstat (limited to 'service/container.go')
-rw-r--r-- | service/container.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/container.go b/service/container.go index 275cfffd..abeaf369 100644 --- a/service/container.go +++ b/service/container.go @@ -16,13 +16,13 @@ var errNoConfig = fmt.Errorf("no config has been provided") // implement service.HydrateConfig. const InitMethod = "Init" -// Service can serve. Service can provide Init method which must return (bool, error) signature and might accept +// Services can serve. Services can provide Init method which must return (bool, error) signature and might accept // other services and/or configs as dependency. type Service interface { // Serve serves. Serve() error - // Stop stops the service. + // Detach stops the service. Stop() } @@ -198,7 +198,7 @@ func (c *container) Serve() error { return nil } -// Stop sends stop command to all running services. +// Detach sends stop command to all running services. func (c *container) Stop() { for _, e := range c.services { if e.hasStatus(StatusServing) { |