a89aa40dda
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
15 lines
186 B
Go
15 lines
186 B
Go
package proxy
|
|
|
|
func (p *Proxy) Reload() error {
|
|
p.m.Lock()
|
|
defer p.m.Unlock()
|
|
|
|
i, err := p.instance.Restart(p.config)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
p.instance = i
|
|
|
|
return nil
|
|
}
|