debug syncthing behavior

This commit is contained in:
Tordarus 2025-01-16 12:46:50 +01:00
parent 85436a47e7
commit 6f6dfc90b2
2 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
.env .env
music-library music-library
hashes.bin

View File

@ -52,6 +52,11 @@ func main() {
panic(err) panic(err)
} }
files = channel.MapSuccessive(files, func(s string) string {
fmt.Println("DEBUG", s)
return s
})
groupedFiles := channel.GroupByTime(files, time.Second, func(events map[string]struct{}, event string) map[string]struct{} { groupedFiles := channel.GroupByTime(files, time.Second, func(events map[string]struct{}, event string) map[string]struct{} {
if events == nil { if events == nil {
events = map[string]struct{}{} events = map[string]struct{}{}