File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
crates/nostr-sdk/src/relay Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -201,9 +201,9 @@ impl RelayConnectionStats {
201
201
#[ derive( Debug , Clone ) ]
202
202
pub struct ActiveSubscription {
203
203
/// SubscriptionId to update or cancel subscription
204
- pub id : SubscriptionId ,
204
+ id : SubscriptionId ,
205
205
/// Subscriptions filters
206
- pub filters : Vec < Filter > ,
206
+ filters : Vec < Filter > ,
207
207
}
208
208
209
209
impl Default for ActiveSubscription {
@@ -220,6 +220,16 @@ impl ActiveSubscription {
220
220
filters : Vec :: new ( ) ,
221
221
}
222
222
}
223
+
224
+ /// Get [`SubscriptionId`]
225
+ pub fn id ( & self ) -> SubscriptionId {
226
+ self . id . clone ( )
227
+ }
228
+
229
+ /// Get subscription filters
230
+ pub fn filters ( & self ) -> Vec < Filter > {
231
+ self . filters . clone ( )
232
+ }
223
233
}
224
234
225
235
/// Relay
You can’t perform that action at this time.
0 commit comments