use REMOVE-BEFORE in P2P protocol
Only clusters still need to be fixed to close this todo.
This commit is contained in:
parent
1243af4a18
commit
99b7a0cfe9
5 changed files with 72 additions and 47 deletions
|
@ -23,12 +23,12 @@ safeDropProofExpired :: Annex ()
|
|||
safeDropProofExpired = do
|
||||
showNote "unsafe"
|
||||
showLongNote $ UnquotedString
|
||||
"Dropping took too long, and locks on remotes may have expired."
|
||||
"Dropping took too long, and locks may have expired."
|
||||
|
||||
checkSafeDropProofEndTime :: Maybe SafeDropProof -> IO Bool
|
||||
checkSafeDropProofEndTime p = case safeDropProofEndTime =<< p of
|
||||
Nothing -> return True
|
||||
Just t -> do
|
||||
Just endtime -> do
|
||||
now <- getPOSIXTime
|
||||
return (t < now)
|
||||
return (endtime > now)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue