From e11c63cafb9486d238fa271f63caa268048da488 Mon Sep 17 00:00:00 2001 From: mahcks Date: Fri, 19 Jul 2024 12:29:04 -0500 Subject: [PATCH] bug: removed config for HTTP because it doesn't work for some reason --- config/config.go | 7 ------- internal/rest/rest.go | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/config/config.go b/config/config.go index 3e27c49..bf557ce 100644 --- a/config/config.go +++ b/config/config.go @@ -28,13 +28,6 @@ type Config struct { } `mapstructure:"helix" json:"helix"` } `mapstructure:"twitch" json:"twitch"` - HTTP struct { - Address string `mapstructure:"address" json:"address"` - Ports struct { - REST string `mapstructure:"rest" json:"rest"` - } `mapstructure:"ports" json:"ports"` - } `mapstructure:"http" json:"http"` - Turso struct { URL string `mapstructure:"url" json:"url"` } `mapstructure:"turso" json:"turso"` diff --git a/internal/rest/rest.go b/internal/rest/rest.go index e318cae..1c332e5 100644 --- a/internal/rest/rest.go +++ b/internal/rest/rest.go @@ -90,7 +90,7 @@ func New(gctx global.Context) error { // Listen for connections in a separate goroutine. // When Listen returns, send the error (or nil if none) on errCh. go func() { - if err := app.Listen(fmt.Sprintf("%v:%v", gctx.Config().HTTP.Address, gctx.Config().HTTP.Ports.REST)); err != nil { + if err := app.Listen(fmt.Sprintf("%v:%v", "0.0.0.0", "3000")); err != nil { errCh <- err } else { errCh <- nil