Fix signaure subscription panic (#12077)
This commit is contained in:
parent
3b1dbfcce2
commit
369d376d10
|
@ -634,7 +634,7 @@ impl RpcSubscriptions {
|
||||||
) {
|
) {
|
||||||
let (commitment, enable_received_notification) = signature_subscribe_config
|
let (commitment, enable_received_notification) = signature_subscribe_config
|
||||||
.map(|config| (config.commitment, config.enable_received_notification))
|
.map(|config| (config.commitment, config.enable_received_notification))
|
||||||
.unwrap_or((None, Some(false)));
|
.unwrap_or_default();
|
||||||
|
|
||||||
let commitment_level = commitment
|
let commitment_level = commitment
|
||||||
.unwrap_or_else(CommitmentConfig::recent)
|
.unwrap_or_else(CommitmentConfig::recent)
|
||||||
|
@ -970,9 +970,7 @@ impl RpcSubscriptions {
|
||||||
},
|
},
|
||||||
) in hashmap.iter()
|
) in hashmap.iter()
|
||||||
{
|
{
|
||||||
if is_received_notification_enabled
|
if is_received_notification_enabled.unwrap_or_default() {
|
||||||
.expect("All signature subscriptions must have this config field set")
|
|
||||||
{
|
|
||||||
notifier.notify(
|
notifier.notify(
|
||||||
Response {
|
Response {
|
||||||
context: RpcResponseContext {
|
context: RpcResponseContext {
|
||||||
|
|
Loading…
Reference in New Issue