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

Method send

plugins/lsps-plugin/src/core/transport.rs:169–176  ·  view source on GitHub ↗
(&self, _peer: &PublicKey, _payload: &[u8])

Source from the content-addressed store, hash-verified

167 #[async_trait]
168 impl MessageSender for MockSender {
169 async fn send(&self, _peer: &PublicKey, _payload: &[u8]) -> Result<()> {
170 self.call_count.fetch_add(1, Ordering::SeqCst);
171 if self.should_fail {
172 Err(Error::Internal("mock failure".into()))
173 } else {
174 Ok(())
175 }
176 }
177 }
178
179 #[tokio::test]

Callers 15

get_rateMethod · 0.45
handle_notificationFunction · 0.45
handle_notificationFunction · 0.45
configureMethod · 0.45
startMethod · 0.45
disableMethod · 0.45
dispatch_oneMethod · 0.45
shutdownMethod · 0.45
start_writerFunction · 0.45
on_eventMethod · 0.45
completeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected