(provider_id: &str, credential_key: &str)
| 29 | } |
| 30 | |
| 31 | pub fn refresh_state_name(provider_id: &str, credential_key: &str) -> String { |
| 32 | let mut key = String::with_capacity(credential_key.len() * 2); |
| 33 | for byte in credential_key.as_bytes() { |
| 34 | use std::fmt::Write as _; |
| 35 | write!(&mut key, "{byte:02x}").expect("writing to String cannot fail"); |
| 36 | } |
| 37 | format!("provider-refresh-{provider_id}-{key}") |
| 38 | } |
| 39 | |
| 40 | pub async fn put_refresh_state( |
| 41 | store: &Store, |
no test coverage detected