From 3e2f8f9f15c9396bb37d308edc845e75f2951e60 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 14:09:37 +0100 Subject: [PATCH] ax(mining): replace prose comment on ServiceStartup with usage example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AX Principle 2 — comments show HOW with real values, not describe WHAT the function signature already says. Co-Authored-By: Charon --- pkg/mining/service.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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