summaryrefslogtreecommitdiff
path: root/service/http
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-04 18:52:24 +0300
committerWolfy-J <[email protected]>2019-05-04 18:52:24 +0300
commit117a347b5234bce4168c332f5471855427399b7b (patch)
tree256eccc13a6a8f8e29684a9c4e0ed1892a4139ec /service/http
parent17c259e8e0a7988b4336643c4d180733663dbaa3 (diff)
polish
Diffstat (limited to 'service/http')
-rw-r--r--service/http/config.go2
-rw-r--r--service/http/response.go2
-rw-r--r--service/http/service.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/service/http/config.go b/service/http/config.go
index 165b45de..ecd5a3a8 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -28,7 +28,7 @@ type Config struct {
// Uploads configures uploads configuration.
Uploads *UploadsConfig
- // Workers configures roadrunner server and worker pool.
+ // Workers configures rr server and worker pool.
Workers *roadrunner.ServerConfig
}
diff --git a/service/http/response.go b/service/http/response.go
index 2d17278d..8bd770ec 100644
--- a/service/http/response.go
+++ b/service/http/response.go
@@ -19,7 +19,7 @@ type Response struct {
body interface{}
}
-// NewResponse creates new response based on given roadrunner payload.
+// NewResponse creates new response based on given rr payload.
func NewResponse(p *roadrunner.Payload) (*Response, error) {
r := &Response{body: p.Body}
if err := json.Unmarshal(p.Context, r); err != nil {
diff --git a/service/http/service.go b/service/http/service.go
index 651284b4..800d3ca9 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -128,7 +128,7 @@ func (s *Service) Stop() {
go s.http.Shutdown(context.Background())
}
-// Server returns associated roadrunner server (if any).
+// Server returns associated rr server (if any).
func (s *Service) Server() *roadrunner.Server {
s.mu.Lock()
defer s.mu.Unlock()