()
| 89 | |
| 90 | impl McpOAuthManager { |
| 91 | pub fn new() -> Self { |
| 92 | Self { |
| 93 | oauth_states: Arc::new(RwLock::new(HashMap::new())), |
| 94 | servers: Arc::new(RwLock::new(HashMap::new())), |
| 95 | statuses: Arc::new(RwLock::new(HashMap::new())), |
| 96 | logs: Arc::new(RwLock::new(HashMap::new())), |
| 97 | clients: Arc::new(McpClientRegistry::new()), |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | async fn log_event( |
| 102 | &self, |