Remove experimental code

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-11-30 23:59:07 +01:00
parent 5f379a78ea
commit 0b13fb19e7
3 changed files with 3 additions and 24 deletions

2
go.mod
View File

@@ -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

2
go.sum
View File

@@ -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=

View File

@@ -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 {