summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-11 14:57:47 +0300
committerWolfy-J <[email protected]>2018-06-11 14:57:47 +0300
commit846cec64f177a9cfef016a8225c4fae0faa29a0c (patch)
treea0dc1df41ab25793a2dd5ada80f3ca5de4615e7d /server.go
parent78fb74cfa5c0156f70c095a4f2cfee9851a9dc0f (diff)
more tests for http
Diffstat (limited to 'server.go')
-rw-r--r--server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.go b/server.go
index d914760b..c194bc78 100644
--- a/server.go
+++ b/server.go
@@ -63,7 +63,7 @@ func (srv *Server) Start() (err error) {
return err
}
- if srv.pool, err = NewPool(srv.cfg.makeCommand(), srv.factory, srv.cfg.Pool); err != nil {
+ if srv.pool, err = NewPool(srv.cfg.makeCommand(), srv.factory, *srv.cfg.Pool); err != nil {
return err
}
@@ -124,7 +124,7 @@ func (srv *Server) Reconfigure(cfg *ServerConfig) error {
previous := srv.pool
srv.mu.Unlock()
- pool, err := NewPool(cfg.makeCommand(), srv.factory, cfg.Pool)
+ pool, err := NewPool(cfg.makeCommand(), srv.factory, *cfg.Pool)
if err != nil {
return err
}