summaryrefslogtreecommitdiff
path: root/service/http/service.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-06-24 14:00:51 +0300
committerWolfy-J <[email protected]>2019-06-24 14:00:51 +0300
commit3293b9d9009f04eb874de90ccb82e33fe76a5e07 (patch)
tree17105b61be3d81047229e8107f1c65a31f9da91d /service/http/service.go
parented7ba40a04f32d04f1e565fe0fb973aa0e0574a9 (diff)
golint
Diffstat (limited to 'service/http/service.go')
-rw-r--r--service/http/service.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/http/service.go b/service/http/service.go
index b3f56480..f9bd0a90 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -139,7 +139,7 @@ func (s *Service) Serve() error {
if s.fcgi != nil {
go func() {
- err <- s.ListenAndServeFCGI()
+ err <- s.ServeFCGI()
}()
}
@@ -172,7 +172,8 @@ func (s *Service) Server() *roadrunner.Server {
return s.rr
}
-func (s *Service) ListenAndServeFCGI() error {
+// ServeFCGI starts FastCGI server.
+func (s *Service) ServeFCGI() error {
l, err := util.CreateListener(s.cfg.FCGI.Address)
if err != nil {
return err