pull/650/head
Windfarer 4 years ago
parent 6785585b17
commit 6d5f0a1b3c
  1. 1
      pkg/container/pool/list.go
  2. 1
      pkg/container/pool/slice.go

@ -50,7 +50,6 @@ func NewList(c *Config) *List {
// Reload reload config. // Reload reload config.
func (p *List) Reload(c *Config) error { func (p *List) Reload(c *Config) error {
p.mu.Lock() p.mu.Lock()
//p.startCleanerLocked(time.Duration(c.IdleTimeout))
p.conf = c p.conf = c
p.mu.Unlock() p.mu.Unlock()
return nil return nil

@ -61,7 +61,6 @@ func NewSlice(c *Config) *Slice {
// Reload reload config. // Reload reload config.
func (p *Slice) Reload(c *Config) error { func (p *Slice) Reload(c *Config) error {
p.mu.Lock() p.mu.Lock()
//p.startCleanerLocked(time.Duration(c.IdleTimeout))
p.setActive(c.Active) p.setActive(c.Active)
p.setIdle(c.Idle) p.setIdle(c.Idle)
p.conf = c p.conf = c

Loading…
Cancel
Save