Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6b84179

Browse files
committedJun 3, 2022
update: make sub-clients stored in Lnd Struct public to avoid complete reliance on proxy methods
1 parent d1595d1 commit 6b84179

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎src/lib.rs

+11
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ impl Interceptor for LndInterceptor {
162162
}
163163

164164
impl Lnd {
165+
165166
pub async fn get_info(&mut self) -> Result<GetInfoResponse, Status> {
166167
self.lightning
167168
.get_info(GetInfoRequest {})
@@ -254,6 +255,16 @@ impl Lnd {
254255
.await
255256
.map(Response::into_inner)
256257
}
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+
257268
}
258269

259270
impl Lnd {

0 commit comments

Comments
 (0)
Please sign in to comment.