make keeplocked client UUID optional

It's not used, but it makes the protocol simpler if this parameter can
always be sent.
This commit is contained in:
Joey Hess 2024-07-22 19:48:54 -04:00
parent 7f4cff7ae9
commit 163a7e91c4
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -872,7 +872,7 @@ clientLockContent clientenv (ProtocolVersion ver) k su cu bypass auth =
type KeepLockedAPI
= LockIDParam
:> CU Required
:> CU Optional
:> BypassUUIDs
:> IsSecure
:> AuthHeader
@ -887,7 +887,7 @@ serveKeepLocked
-> B64UUID ServerSide
-> v
-> LockID
-> B64UUID ClientSide
-> Maybe (B64UUID ClientSide)
-> [B64UUID Bypass]
-> IsSecure
-> Maybe Auth
@ -923,7 +923,7 @@ clientKeepLocked
clientKeepLocked clientenv (ProtocolVersion ver) lckid su cu bypass auth a = do
keeplocked <- newEmptyTMVarIO
tid <- async $ a keeplocked
let cli' = cli lckid cu bypass auth
let cli' = cli lckid (Just cu) bypass auth
(Just connectionKeepAlive) (Just keepAlive)
(S.fromStepT (unlocksender keeplocked))
withClientM cli' clientenv $ \case