Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Jun 13, 2024
1 parent 460ca4c commit 238f44a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/bench_geyser_grpc_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ fn start_tracking_account_consumer(mut geyser_messages_rx: Receiver<Message>, cu
// CzK26LWpoU9UjSrZkVu97oZj63abJrNv1zp9Hy2zZdy5
// 6ojSigXF7nDPyhFRgmn3V9ywhYseKF9J32ZrranMGVSX
// FV8EEHjJvDUD8Kkp1DcomTatZBA81Z6C5AhmvyUwvEAh
// choose an account for which the diff should be calculated
let selected_account_pk = Pubkey::from_str("4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg").unwrap();

let mut last_account_data: Option<Vec<u8>> = None;


Expand Down Expand Up @@ -240,7 +243,6 @@ fn start_tracking_account_consumer(mut geyser_messages_rx: Receiver<Message>, cu
last_account_data = Some(account_info.data.clone());
}


bytes_per_slot.entry(slot)
.and_modify(|entry| *entry += account_info.data.len())
.or_insert(account_info.data.len());
Expand Down

0 comments on commit 238f44a

Please sign in to comment.