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

Method insert

plugins/lsps-plugin/src/core/transport.rs:68–72  ·  view source on GitHub ↗
(&self, id: String)

Source from the content-addressed store, hash-verified

66 }
67
68 pub async fn insert(&self, id: String) -> oneshot::Receiver<Vec<u8>> {
69 let (tx, rx) = oneshot::channel();
70 self.inner.lock().await.insert(id, tx);
71 rx
72 }
73
74 pub async fn complete(&self, id: &str, data: Vec<u8>) -> bool {
75 if let Some(tx) = self.inner.lock().await.remove(id) {

Callers 3

requestMethod · 0.45

Calls 1

channelClass · 0.50

Tested by 2