diff --git a/pkg/services/service.go b/pkg/services/service.go index 6257ff6b51..1e7fe40b4c 100644 --- a/pkg/services/service.go +++ b/pkg/services/service.go @@ -221,7 +221,7 @@ type service struct { subs []Service } -// Ready implements [HealthReporter.Ready] and overrides and extends [utils.StartStopOnce.Ready()] to include [Config.SubServices] +// Ready implements [HealthReporter.Ready] and overrides and extends [services.StateMachine.Ready()] to include [Config.SubServices] // readiness as well. func (s *service) Ready() (err error) { err = s.StateMachine.Ready() diff --git a/pkg/utils/start_stop_once.go b/pkg/utils/start_stop_once.go index fec03735e8..80321536f1 100644 --- a/pkg/utils/start_stop_once.go +++ b/pkg/utils/start_stop_once.go @@ -5,5 +5,8 @@ import ( ) // StartStopOnce can be embedded in a struct to help implement types.Service. +// // Deprecated: use services.StateMachine +// +//go:fix inline type StartStopOnce = services.StateMachine