It's not used, but it makes the protocol simpler if this parameter can
always be sent.
type KeepLockedAPI
= LockIDParam
- :> CU Required
+ :> CU Optional
:> BypassUUIDs
:> IsSecure
:> AuthHeader
-> B64UUID ServerSide
-> v
-> LockID
- -> B64UUID ClientSide
+ -> Maybe (B64UUID ClientSide)
-> [B64UUID Bypass]
-> IsSecure
-> Maybe Auth
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