Add alternate downloader that seems to not work very well...

This commit is contained in:
2024-06-17 15:05:04 +02:00
parent 9542806ab4
commit 2b876d5712
4 changed files with 165 additions and 18 deletions

View File

@@ -45,9 +45,14 @@ func main() {
listener.Collections = []string{COLLECTION_NAME}
listener.initialize()
status := make(chan error)
for event := range listener.Create {
log.Printf("Create event: %+v\n", event)
go Download(event)
go Download(event, status)
// go DownloadNative(event, status)
for status := range status {
log.Printf("Status: %s\n", status)
}
}
time.Sleep(1 * time.Hour)