refresh snapshot only on online boxes
This commit is contained in:
parent
23d7d90d20
commit
9594fd7970
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 {
|
||||
|
@ -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