diff --git a/config/config.go b/config/config.go index 24b66e6..478e9d1 100644 --- a/config/config.go +++ b/config/config.go @@ -123,12 +123,12 @@ type Bus struct { } // Listeners . -type Listener struct { - ID string - Port int `json:"port" yaml:"port"` - Cert string `json:"cert,omitempty" yaml:"cert,omitempty"` - PKey string `json:"pkey,omitempty" yaml:"pkey,omitempty"` -} +// type Listener struct { +// ID string +// Port int `json:"port" yaml:"port"` +// Cert string `json:"cert,omitempty" yaml:"cert,omitempty"` +// PKey string `json:"pkey,omitempty" yaml:"pkey,omitempty"` +// } // Logging . type Logging struct { diff --git a/main.go b/main.go index a69a443..19caf13 100644 --- a/main.go +++ b/main.go @@ -127,7 +127,7 @@ func main() { app.Log.Error(err.Error()) } - api := listeners.NewHttpApi(cfg.Listeners[0], db) + api := listeners.NewHttpApi(cfg.Listeners[1], db) err = app.AddListener(api) if err != nil { app.Log.Error(err.Error())