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

Method new

plugins/lsps-plugin/src/client.rs:59–65  ·  view source on GitHub ↗
(rpc_path: PathBuf, timeout: std::time::Duration)

Source from the content-addressed store, hash-verified

57
58impl State {
59 pub fn new(rpc_path: PathBuf, timeout: std::time::Duration) -> Self {
60 Self {
61 sender: ClnSender::new(rpc_path),
62 pending: PendingRequests::new(),
63 timeout,
64 }
65 }
66
67 pub fn client(&self) -> LspsClient<MultiplexedTransport<ClnSender>> {
68 LspsClient::new(self.transport())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected