From 6f6dfc90b2b713abc73e5bbce48f680028d50c46 Mon Sep 17 00:00:00 2001 From: Tordarus Date: Thu, 16 Jan 2025 12:46:50 +0100 Subject: [PATCH] debug syncthing behavior --- .gitignore | 3 ++- main.go | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6eab256..d07cf16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env -music-library \ No newline at end of file +music-library +hashes.bin \ No newline at end of file diff --git a/main.go b/main.go index 271c12c..a7ca7d1 100644 --- a/main.go +++ b/main.go @@ -52,6 +52,11 @@ func main() { 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{} { if events == nil { events = map[string]struct{}{}