summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-10 20:31:05 +0300
committerWolfy-J <[email protected]>2018-06-10 20:31:05 +0300
commited3a0f2bb25077c7a32a54ddb3754f04ffbdccf3 (patch)
tree9a579e6ce81e7af5e3844fbcf590f9c8db26d90a /server.go
parentade5cc504e2b082d0838cc93c3a185246fdc7834 (diff)
debug mode have been added
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 6ee2a170..d914760b 100644
--- a/server.go
+++ b/server.go
@@ -49,7 +49,7 @@ func NewServer(cfg *ServerConfig) *Server {
return &Server{cfg: cfg}
}
-// Listen attaches server event watcher.
+// AddListener attaches server event watcher.
func (srv *Server) Listen(l func(event int, ctx interface{})) {
srv.listener = l
}
@@ -169,7 +169,7 @@ func (srv *Server) Pool() Pool {
return srv.pool
}
-// Listen pool events.
+// AddListener pool events.
func (srv *Server) poolListener(event int, ctx interface{}) {
// bypassing to user specified listener
srv.throw(event, ctx)
@@ -185,7 +185,7 @@ func (srv *Server) poolListener(event int, ctx interface{}) {
srv.factory = nil
// everything is dead, this is recoverable but heavy state
- srv.throw(EventServerFailure, srv)
+ srv.throw(EventServerFailure, err)
}
}
}