We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 257ac57 commit 509c728Copy full SHA for 509c728
cktap-ffi/src/sats_card.rs
@@ -67,14 +67,10 @@ impl SatsCard {
67
Ok(pubkey_desc)
68
}
69
70
- /// Wait 15 seconds or until auth delay timeout is done
71
- pub async fn wait(&self) -> Result<(), CkTapError> {
+ /// Wait one second of auth delay and return the remaining delay, if any.
+ pub async fn wait(&self) -> Result<Option<u8>, CkTapError> {
72
let mut card = self.0.lock().await;
73
- // if auth delay call wait
74
- while card.auth_delay().is_some() {
75
- card.wait(None).await?;
76
- }
77
- Ok(())
+ card.wait(None).await.map_err(CkTapError::from)
78
79
80
/// Verify the card has authentic Coinkite root certificate
0 commit comments