cleaning up manager, tying it to add files
This commit is contained in:
		@@ -103,7 +103,7 @@ func (fw *FileWatcher) BeginWatcherRoutine(ctx context.Context, wg *sync.WaitGro
 | 
			
		||||
				Total:    100,
 | 
			
		||||
			}
 | 
			
		||||
			eventContext := context.WithValue(cancelContext, key(event.Path), e)
 | 
			
		||||
			if err := manageFileDiffing(eventContext, event.Path, syncFilePath, fw.DiffFolder, true, diffChannel, wg); err != nil {
 | 
			
		||||
			if err := manageFileDiffing(eventContext, event.Path, syncFilePath, fw.DiffFolder, diffChannel, wg); err != nil {
 | 
			
		||||
				// I don't think this can be reached...
 | 
			
		||||
				fw.Warn().Msgf("Error managing the diffing process %s", err)
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user