Skip to content

Commit

Permalink
bug: removed config for HTTP because it doesn't work for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahcks committed Jul 19, 2024
1 parent e741cbd commit e11c63c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion internal/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e11c63c

Please sign in to comment.