add a progress callback to storeKey, and threaded it all the way through
Transfer info files are updated when the callback is called, updating the number of bytes transferred. Left unused p variables at every place the callback should be used. Which is rather a lot..
This commit is contained in:
		
					parent
					
						
							
								3c81d70c1b
							
						
					
				
			
			
				commit
				
					
						aff09a1f33
					
				
			
		
					 14 changed files with 75 additions and 59 deletions
				
			
		| 
						 | 
				
			
			@ -43,8 +43,8 @@ start to from file key =
 | 
			
		|||
 | 
			
		||||
toPerform :: Remote -> Key -> AssociatedFile -> CommandPerform
 | 
			
		||||
toPerform remote key file = next $
 | 
			
		||||
	upload (uuid remote) key file $ do
 | 
			
		||||
		ok <- Remote.storeKey remote key file
 | 
			
		||||
	upload (uuid remote) key file $ \p -> do
 | 
			
		||||
		ok <- Remote.storeKey remote key file p
 | 
			
		||||
		when ok $
 | 
			
		||||
			Remote.logStatus remote key InfoPresent
 | 
			
		||||
		return ok
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue