@@ -31,9 +31,9 @@ use tonic::{
31
31
32
32
#[ derive( Debug , Clone ) ]
33
33
pub struct Lnd {
34
- lightning : LightningClient < InterceptedService < Channel , LndInterceptor > > ,
35
- invoices : InvoicesClient < InterceptedService < Channel , LndInterceptor > > ,
36
- router : RouterClient < InterceptedService < Channel , LndInterceptor > > ,
34
+ pub lightning : LightningClient < InterceptedService < Channel , LndInterceptor > > ,
35
+ pub invoices : InvoicesClient < InterceptedService < Channel , LndInterceptor > > ,
36
+ pub router : RouterClient < InterceptedService < Channel , LndInterceptor > > ,
37
37
}
38
38
39
39
#[ derive( Debug , thiserror:: Error ) ]
@@ -136,7 +136,7 @@ impl Lnd {
136
136
}
137
137
138
138
#[ derive( Debug , Clone ) ]
139
- struct LndInterceptor {
139
+ pub struct LndInterceptor {
140
140
macaroon : Option < MetadataValue < Ascii > > ,
141
141
}
142
142
@@ -162,6 +162,7 @@ impl Interceptor for LndInterceptor {
162
162
}
163
163
164
164
impl Lnd {
165
+
165
166
pub async fn get_info ( & mut self ) -> Result < GetInfoResponse , Status > {
166
167
self . lightning
167
168
. get_info ( GetInfoRequest { } )
@@ -254,6 +255,7 @@ impl Lnd {
254
255
. await
255
256
. map ( Response :: into_inner)
256
257
}
258
+
257
259
}
258
260
259
261
impl Lnd {
0 commit comments