diff --git a/pkg/mining/service.go b/pkg/mining/service.go index a5fa814..9b3685d 100644 --- a/pkg/mining/service.go +++ b/pkg/mining/service.go @@ -572,8 +572,7 @@ func (s *Service) Stop() { } } -// ServiceStartup initializes the router and starts the HTTP server. -// For embedding without a standalone server, use InitRouter() instead. +// svc.ServiceStartup(ctx) // blocks until ctx is cancelled; use InitRouter() to embed without a server func (s *Service) ServiceStartup(ctx context.Context) error { s.InitRouter() s.Server.Handler = s.Router