diff options
author | Wolfy-J <[email protected]> | 2018-06-10 20:31:05 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-10 20:31:05 +0300 |
commit | ed3a0f2bb25077c7a32a54ddb3754f04ffbdccf3 (patch) | |
tree | 9a579e6ce81e7af5e3844fbcf590f9c8db26d90a /server.go | |
parent | ade5cc504e2b082d0838cc93c3a185246fdc7834 (diff) |
debug mode have been added
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) } } } |