syncthing debug fix
This commit is contained in:
parent
224742d008
commit
da6f025c7c
3
main.go
3
main.go
@ -22,6 +22,7 @@ var ( // flags
|
||||
FlagCacheFile = envvars.String("CACHE_FILE", "/hashes.bin")
|
||||
FlagExcludeFiles = envvars.StringSlice("EXCLUDE_FILES", ":", []string{".songs", ".stversions"})
|
||||
FlagUpdateCacheFileInterval = envvars.Duration("UPDATE_CACHE_FILE_INTERVAL", 10*time.Second)
|
||||
FlagGroupMultipleFileChangesByTime = envvars.Duration("GROUP_FILE_CHANGES_INTERVAL", 10*time.Second)
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -57,7 +58,7 @@ func main() {
|
||||
return s
|
||||
})
|
||||
|
||||
groupedFiles := channel.GroupByTime(files, time.Second, func(events map[string]struct{}, event string) map[string]struct{} {
|
||||
groupedFiles := channel.GroupByTime(files, FlagGroupMultipleFileChangesByTime, func(events map[string]struct{}, event string) map[string]struct{} {
|
||||
if events == nil {
|
||||
events = map[string]struct{}{}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user