debug syncthing behavior
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1,2 +1,3 @@ | ||||
| .env | ||||
| music-library | ||||
| music-library | ||||
| hashes.bin | ||||
							
								
								
									
										5
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								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{}{} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user