summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-05-29 20:31:27 +0300
committerWolfy-J <[email protected]>2018-05-29 20:31:27 +0300
commit130da89a94f044fafed584ad5430b59991f317c7 (patch)
treeb6fac7a256b6089eb04ff6bacfbd138ada9382bc /server.go
parente45daa3bbfd5e95889d00ba3cf9ff6c95101bcb2 (diff)
updates for the server support
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 829d0ceb..d873da63 100644
--- a/server.go
+++ b/server.go
@@ -43,7 +43,7 @@ func NewRouter(cmd func() *exec.Cmd, factory Factory) *Server {
}
}
-// Configure configures underlying pool and destroys it's previous version if any
+// Configure configures underlying pool and destroys it's previous version if any.
func (r *Server) Configure(cfg Config) error {
r.mu.Lock()
previous := r.pool
@@ -58,8 +58,8 @@ func (r *Server) Configure(cfg Config) error {
r.mu.Lock()
- r.pool.Observe(r.poolObserver)
r.cfg, r.pool = cfg, pool
+ r.pool.Observe(r.poolObserver)
r.mu.Unlock()
@@ -135,7 +135,7 @@ func (r *Server) throw(event int, ctx interface{}) {
}
}
-// Observe pool events
+// Observe pool events.
func (r *Server) poolObserver(event int, ctx interface{}) {
// bypassing to user specified observer
r.throw(event, ctx)