Skip to content

Commit

Permalink
Avoid "Dropped RPC Notification" log spam (solana-labs#25341)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored May 18, 2022
1 parent 84f1e5c commit edd090f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rpc/src/rpc_subscriptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,11 @@ impl RpcSubscriptions {
);

Self {
notification_sender: Some(notification_sender),
notification_sender: if notification_threads == 0 {
None
} else {
Some(notification_sender)
},
t_cleanup,
exit: exit.clone(),
control,
Expand Down

0 comments on commit edd090f

Please sign in to comment.