diff options
author | Wolfy-J <[email protected]> | 2019-05-04 23:07:30 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-04 23:07:30 +0300 |
commit | 3800c27ff9ec2641248d6dc2ce2f7ab56c237664 (patch) | |
tree | c8026df76f0fea5519f958d310210e1da46f369d /server.go | |
parent | 2afa417f4f46b31b79043e3e56513d51e4ad2fde (diff) |
golint
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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() |