fix: Comments

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2024-12-24 12:15:56 +01:00
parent 889e4dd177
commit e47b66b956

View File

@@ -89,7 +89,7 @@ func NewDaemon(cfg *config.Config) (*Daemon, error) {
return d, nil return d, nil
} }
// Start starts the daemon and blocks until Stop() is called. // Start starts the daemon and blocks until Shutdown() is called.
func (d *Daemon) Start() error { func (d *Daemon) Start() error {
if err := d.setState(StateInitializing); err != nil { if err := d.setState(StateInitializing); err != nil {
return fmt.Errorf("failed transition state: %w", err) return fmt.Errorf("failed transition state: %w", err)
@@ -154,7 +154,7 @@ out:
return nil return nil
} }
// Stop stops the daemon // Shutdown stops the daemon.
func (d *Daemon) Shutdown(restart bool) { func (d *Daemon) Shutdown(restart bool) {
if d.stop == nil { if d.stop == nil {
return return