refresh snapshot only on online boxes
This commit is contained in:
4
app.go
4
app.go
@@ -518,7 +518,9 @@ func (a AppConfig) RefreshSnapshot() error {
|
||||
|
||||
refreshSnapshot := make(map[string]struct{})
|
||||
for _, v := range a.Sources {
|
||||
refreshSnapshot[v.Box()] = struct{}{}
|
||||
if cfg.Box[v.Box()].online {
|
||||
refreshSnapshot[v.Box()] = struct{}{}
|
||||
}
|
||||
}
|
||||
for _, v := range a.Destinations {
|
||||
if cfg.Box[v.Box()].online {
|
||||
|
||||
Reference in New Issue
Block a user