Fix logsSubscribe (#13996)
This commit is contained in:
parent
3d9d7557c8
commit
6ae4d2e5cb
@ -87,7 +87,7 @@ pub trait RpcSolPubSub {
|
|||||||
meta: Self::Metadata,
|
meta: Self::Metadata,
|
||||||
subscriber: Subscriber<RpcResponse<RpcLogsResponse>>,
|
subscriber: Subscriber<RpcResponse<RpcLogsResponse>>,
|
||||||
filter: RpcTransactionLogsFilter,
|
filter: RpcTransactionLogsFilter,
|
||||||
config: RpcTransactionLogsConfig,
|
config: Option<RpcTransactionLogsConfig>,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Unsubscribe from logs notification subscription.
|
// Unsubscribe from logs notification subscription.
|
||||||
@ -269,7 +269,7 @@ impl RpcSolPubSub for RpcSolPubSubImpl {
|
|||||||
_meta: Self::Metadata,
|
_meta: Self::Metadata,
|
||||||
subscriber: Subscriber<RpcResponse<RpcLogsResponse>>,
|
subscriber: Subscriber<RpcResponse<RpcLogsResponse>>,
|
||||||
filter: RpcTransactionLogsFilter,
|
filter: RpcTransactionLogsFilter,
|
||||||
config: RpcTransactionLogsConfig,
|
config: Option<RpcTransactionLogsConfig>,
|
||||||
) {
|
) {
|
||||||
info!("logs_subscribe");
|
info!("logs_subscribe");
|
||||||
|
|
||||||
@ -306,7 +306,7 @@ impl RpcSolPubSub for RpcSolPubSubImpl {
|
|||||||
self.subscriptions.add_logs_subscription(
|
self.subscriptions.add_logs_subscription(
|
||||||
address,
|
address,
|
||||||
include_votes,
|
include_votes,
|
||||||
config.commitment,
|
config.and_then(|config| config.commitment),
|
||||||
sub_id,
|
sub_id,
|
||||||
subscriber,
|
subscriber,
|
||||||
)
|
)
|
||||||
|
@ -3013,7 +3013,7 @@ Request:
|
|||||||
"params": [
|
"params": [
|
||||||
{
|
{
|
||||||
"mentions": [ "11111111111111111111111111111111" ]
|
"mentions": [ "11111111111111111111111111111111" ]
|
||||||
}
|
},
|
||||||
{
|
{
|
||||||
"commitment": "max"
|
"commitment": "max"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user