1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-02-09 13:36:57 +02:00
This commit is contained in:
Windfarer 2020-12-01 18:20:09 +08:00
parent 6785585b17
commit 6d5f0a1b3c
2 changed files with 0 additions and 2 deletions

View File

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

View File

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