()
| 60 | |
| 61 | impl PendingRequests { |
| 62 | pub fn new() -> Self { |
| 63 | Self { |
| 64 | inner: Arc::new(Mutex::new(HashMap::new())), |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | pub async fn insert(&self, id: String) -> oneshot::Receiver<Vec<u8>> { |
| 69 | let (tx, rx) = oneshot::channel(); |
nothing calls this directly
no outgoing calls
no test coverage detected