We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1595d1 commit 6b84179Copy full SHA for 6b84179
src/lib.rs
@@ -162,6 +162,7 @@ impl Interceptor for LndInterceptor {
162
}
163
164
impl Lnd {
165
+
166
pub async fn get_info(&mut self) -> Result<GetInfoResponse, Status> {
167
self.lightning
168
.get_info(GetInfoRequest {})
@@ -254,6 +255,16 @@ impl Lnd {
254
255
.await
256
.map(Response::into_inner)
257
258
259
+ pub async fn list_peers(
260
+ &mut self,
261
+ latest_error: bool
262
+ ) -> Result<ListPeersResponse,Status> {
263
+ self.lightning.list_peers(ListPeersRequest{ latest_error })
264
+ .await
265
+ .map(Response::into_inner)
266
+ }
267
268
269
270
0 commit comments