diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/http/config.go | 2 | ||||
-rw-r--r-- | service/http/response.go | 2 | ||||
-rw-r--r-- | service/http/service.go | 2 | ||||
-rw-r--r-- | service/rpc/system.go | 2 | ||||
-rw-r--r-- | service/watcher/service.go | 4 | ||||
-rw-r--r-- | service/watcher/watcher.go | 2 |
6 files changed, 7 insertions, 7 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() diff --git a/service/rpc/system.go b/service/rpc/system.go index d1368a05..ffba3782 100644 --- a/service/rpc/system.go +++ b/service/rpc/system.go @@ -2,7 +2,7 @@ package rpc import "github.com/spiral/roadrunner/service" -// systemService service controls roadrunner server. +// systemService service controls rr server. type systemService struct { c service.Container } diff --git a/service/watcher/service.go b/service/watcher/service.go index c81ff3f5..0d419716 100644 --- a/service/watcher/service.go +++ b/service/watcher/service.go @@ -8,13 +8,13 @@ import ( // ID defines watcher service name. const ID = "watch" -// Watchable defines the ability to attach roadrunner watcher. +// Watchable defines the ability to attach rr watcher. type Watchable interface { // Watch attaches watcher to the service. Watch(w roadrunner.Watcher) } -// Services to watch the state of roadrunner service inside other services. +// Services to watch the state of rr service inside other services. type Service struct { cfg *Config lsns []func(event int, ctx interface{}) diff --git a/service/watcher/watcher.go b/service/watcher/watcher.go index e92d0677..788ee703 100644 --- a/service/watcher/watcher.go +++ b/service/watcher/watcher.go @@ -11,7 +11,7 @@ const ( // EventMaxMemory caused when worker consumes more memory than allowed. EventMaxMemory = iota + 8000 - // EventMaxTTL thrown when worker is removed due TTL being reached. Context is roadrunner.WorkerError + // EventMaxTTL thrown when worker is removed due TTL being reached. Context is rr.WorkerError EventMaxTTL // EventMaxIdleTTL triggered when worker spends too much time at rest. |