summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-04 23:07:30 +0300
committerWolfy-J <[email protected]>2019-05-04 23:07:30 +0300
commit3800c27ff9ec2641248d6dc2ce2f7ab56c237664 (patch)
treec8026df76f0fea5519f958d310210e1da46f369d /server.go
parent2afa417f4f46b31b79043e3e56513d51e4ad2fde (diff)
golint
Diffstat (limited to 'server.go')
-rw-r--r--server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.go b/server.go
index d1757207..8f8e9382 100644
--- a/server.go
+++ b/server.go
@@ -63,8 +63,8 @@ func (s *Server) Listen(l func(event int, ctx interface{})) {
s.lsn = l
}
-// AddController attaches worker controller.
-func (s *Server) Watch(c Controller) {
+// Attach attaches worker controller.
+func (s *Server) Attach(c Controller) {
s.mu.Lock()
defer s.mu.Unlock()
@@ -102,7 +102,7 @@ func (s *Server) Start() (err error) {
return nil
}
-// Detach underlying worker pool and close the factory.
+// Stop underlying worker pool and close the factory.
func (s *Server) Stop() {
s.mu.Lock()
defer s.mu.Unlock()