Skip to main content

process_dump_sync

Function process_dump_sync 

Source
pub fn process_dump_sync(
    rpc_client_blocking: Arc<RpcClient>,
    config: &CliConfig<'_>,
    account_pubkey: Option<Pubkey>,
    output_location: &str,
) -> ProcessResult
๐Ÿ‘ŽDeprecated: Consider using async process_dump() with nonblocking RpcClient for better performance and resource usage
Expand description

Synchronous wrapper for process_dump Use this when calling from a blocking context within an async runtime Accepts a blocking RpcClient and converts it internally to nonblocking

ยงPerformance Note

This function creates a new RpcClient on each call and has overhead from sync-async-sync bridging. For better performance, consider using the async process_dump() directly with a nonblocking RpcClient.