mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-02 12:45:10 +02:00
all: change refresh_time -> refetch_time
The custom config is refetched from API, not refresh.
This commit is contained in:
committed by
Cuong Manh Le
parent
a007394f60
commit
1634a06330
+2
-2
@@ -247,8 +247,8 @@ func (p *prog) apiConfigReload() {
|
||||
}
|
||||
|
||||
secs := 3600
|
||||
if p.cfg.Service.RefreshTime != nil && *p.cfg.Service.RefreshTime > 0 {
|
||||
secs = *p.cfg.Service.RefreshTime
|
||||
if p.cfg.Service.RefetchTime != nil && *p.cfg.Service.RefetchTime > 0 {
|
||||
secs = *p.cfg.Service.RefetchTime
|
||||
}
|
||||
|
||||
ticker := time.NewTicker(time.Duration(secs) * time.Second)
|
||||
|
||||
Reference in New Issue
Block a user