mirror of
https://github.com/go-kratos/kratos.git
synced 2025-02-09 13:36:57 +02:00
cleaning
This commit is contained in:
parent
6785585b17
commit
6d5f0a1b3c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user