summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Titov <[email protected]>2020-10-17 17:15:50 +0300
committerGitHub <[email protected]>2020-10-17 17:15:50 +0300
commit6baed08ed59f53e8c3e83b32ad6def86d76f67c7 (patch)
tree435829594362a1bf506cd846e469fff37884f9d8
parent16fbf3104c3c34bd9355593052b686acd26a8efe (diff)
Update app.go
-rw-r--r--plugins/factory/app.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/plugins/factory/app.go b/plugins/factory/app.go
index f9e7944c..2c424294 100644
--- a/plugins/factory/app.go
+++ b/plugins/factory/app.go
@@ -83,11 +83,6 @@ func (app *App) NewCmd(env Env) (func() *exec.Cmd, error) {
// todo ENV unused
func (app *App) NewFactory(env Env) (roadrunner.Factory, error) {
- // if Listen is empty or doesn't contain separator, return error
- if app.cfg.Listen == "" || !strings.Contains(app.cfg.Listen, "://") {
- return nil, errors.New("relay should be set")
- }
-
lsn, err := util.CreateListener(app.cfg.Listen)
if err != nil {
return nil, err
@@ -116,10 +111,6 @@ func (app *App) Serve() chan error {
}
func (app *App) Stop() error {
- err := app.factory.Close(context.Background())
- if err != nil {
- return err
- }
return nil
}