MCPcopy Create free account
hub / github.com/ElementsProject/lightning / new

Method new

plugins/lsps-plugin/src/core/transport.rs:62–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61impl 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();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected