refresh snapshot only on online boxes
This commit is contained in:
parent
23d7d90d20
commit
9594fd7970
2
app.go
2
app.go
@ -518,8 +518,10 @@ func (a AppConfig) RefreshSnapshot() error {
|
||||
|
||||
refreshSnapshot := make(map[string]struct{})
|
||||
for _, v := range a.Sources {
|
||||
if cfg.Box[v.Box()].online {
|
||||
refreshSnapshot[v.Box()] = struct{}{}
|
||||
}
|
||||
}
|
||||
for _, v := range a.Destinations {
|
||||
if cfg.Box[v.Box()].online {
|
||||
refreshSnapshot[v.Box()] = struct{}{}
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||
package main
|
||||
var githash = "28bae81"
|
||||
var buildstamp = "2022-06-17_14:02:53"
|
||||
var commits = "39"
|
||||
var version = "28bae81-b39 - 2022-06-17_14:02:53"
|
||||
var githash = "23d7d90"
|
||||
var buildstamp = "2022-06-17_14:07:22"
|
||||
var commits = "40"
|
||||
var version = "23d7d90-b40 - 2022-06-17_14:07:22"
|
||||
|
Loading…
Reference in New Issue
Block a user