From 0b13fb19e792d2abcac8d7dca5d0c22b4da4a1b7 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Sun, 30 Nov 2025 23:59:07 +0100 Subject: [PATCH] Remove experimental code Signed-off-by: Bryan Frimin --- go.mod | 2 -- go.sum | 2 ++ pkg/probod/probod.go | 23 +---------------------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/go.mod b/go.mod index 00b0fbe06..4ddbb6def 100644 --- a/go.mod +++ b/go.mod @@ -128,5 +128,3 @@ require ( tool go.probo.inc/mcpgen replace github.com/olekukonko/tablewriter => github.com/olekukonko/tablewriter v0.0.5 - -replace go.gearno.de/kit => ../../gearnode/kit diff --git a/go.sum b/go.sum index 6759be7dc..f96944bb0 100644 --- a/go.sum +++ b/go.sum @@ -223,6 +223,8 @@ github.com/yuin/goldmark v1.7.13 h1:GPddIs617DnBLFFVJFgpo1aBfe/4xcvMc3SB5t/D0pA= github.com/yuin/goldmark v1.7.13/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg= go.gearno.de/crypto/uuid v0.1.0 h1:94BYg7GYItJ6yYZ1GJayb3VYhI9/FjxuR1nFaduR4hE= go.gearno.de/crypto/uuid v0.1.0/go.mod h1:fnIIvKO9QnsyLO3ZJLJT3r8KZv/p0FOeT5eZKilYWXg= +go.gearno.de/kit v0.0.0-20250930204623-af70ea5798d9 h1:WjCgzngF4+4I4J/gDDPPrPdc/cJnHDkqXdHP7Woa2iw= +go.gearno.de/kit v0.0.0-20250930204623-af70ea5798d9/go.mod h1:cEDPOR+WVloqrYmGBoSpHlLqSmTCBjW1j02ntm0Yk9U= go.gearno.de/x/panicf v0.1.1 h1:E3Cr9NB8Ry2EsvEG/1eHr7kplP3tEjTf5d56dTX64VQ= go.gearno.de/x/panicf v0.1.1/go.mod h1:VnB8oF0UefMZcYeD4v+Wk4U5Z1uza7PHLlhT2CbNEbU= go.gearno.de/x/ref v0.0.0-20240502200927-d74926fcb14c h1:b8Wwr2owaB6g38tptSk5tekXFSE7RpXsUpaoCO8tQDM= diff --git a/pkg/probod/probod.go b/pkg/probod/probod.go index fc7d5ac50..d1c9177c7 100644 --- a/pkg/probod/probod.go +++ b/pkg/probod/probod.go @@ -61,9 +61,7 @@ import ( type ( Implm struct { - cfg config - ready chan struct{} - readyOnce sync.Once + cfg config } config struct { @@ -91,12 +89,10 @@ type ( var ( _ unit.Configurable = (*Implm)(nil) _ unit.Runnable = (*Implm)(nil) - _ unit.Readyable = (*Implm)(nil) ) func New() *Implm { return &Implm{ - ready: make(chan struct{}), cfg: config{ BaseURL: baseurl.MustParse("http://localhost:8080"), Api: apiConfig{ @@ -177,18 +173,6 @@ func (impl *Implm) GetConfiguration() any { return &impl.cfg } -// GetAPIAddr returns the API server address (e.g., "localhost:8080"). -// This is useful for tests to know which address to connect to. -func (impl *Implm) GetAPIAddr() string { - return impl.cfg.Api.Addr -} - -// Ready returns a channel that is closed when the server is ready to accept requests. -// This implements the unit.Readyable interface for testing purposes. -func (impl *Implm) Ready() <-chan struct{} { - return impl.ready -} - func (impl *Implm) Run( parentCtx context.Context, l *log.Logger, @@ -594,11 +578,6 @@ func (impl *Implm) runApiServer( l.Info("api server started") span.AddEvent("API server started") - // Signal that the server is ready to accept requests - impl.readyOnce.Do(func() { - close(impl.ready) - }) - select { case err := <-serverErrCh: if err != nil {