File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
crates/nostr-sdk/src/relay Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -159,18 +159,24 @@ impl RelayPoolTask {
159
159
msg. clone ( ) ,
160
160
) ) ;
161
161
162
- if let RelayMessage :: Event { event, .. } = msg {
163
- // Verifies if the event is valid
164
- if event. verify ( ) . is_ok ( ) {
165
- // Adds only new events
166
- if this. add_event ( event. id ) . await {
167
- let notification = RelayPoolNotification :: Event (
168
- relay_url,
169
- event. as_ref ( ) . clone ( ) ,
170
- ) ;
171
- let _ = this. notification_sender . send ( notification) ;
162
+ match msg {
163
+ RelayMessage :: Event { event, .. } => {
164
+ // Verifies if the event is valid
165
+ if event. verify ( ) . is_ok ( ) {
166
+ // Adds only new events
167
+ if this. add_event ( event. id ) . await {
168
+ let notification = RelayPoolNotification :: Event (
169
+ relay_url,
170
+ event. as_ref ( ) . clone ( ) ,
171
+ ) ;
172
+ let _ = this. notification_sender . send ( notification) ;
173
+ }
172
174
}
173
175
}
176
+ RelayMessage :: Notice { message } => {
177
+ tracing:: warn!( "Notice from {relay_url}: {message}" )
178
+ }
179
+ _ => ( ) ,
174
180
}
175
181
}
176
182
RelayPoolMessage :: BatchEvent ( ids) => {
You can’t perform that action at this time.
0 commit comments