()
| 95 | |
| 96 | impl TokenCache { |
| 97 | fn new() -> Self { |
| 98 | Self { |
| 99 | tokens: Arc::new(RwLock::new(HashMap::new())), |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | /// Get a cached token if it exists and is not expired. |
| 104 | fn get(&self, provider_name: &str) -> Option<String> { |
nothing calls this directly
no outgoing calls
no test coverage detected