Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/sv2_handlers/mining_server_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,16 @@ impl Sv2MiningServerHandler for PlebLotteryMiningServerHandler {
let hashrate = {
let mut hash = 0.0;
let clients_guard = self.clients.read().await;
let client = clients_guard.get(&client_id).unwrap();
let client = match clients_guard.get(&client_id) {
Some(c) => c,
None => {
info!(
"Client {} not found in clients list — assuming already dropped.",
client_id
);
return;
}
};
let client_guard = client.read().await;

// Calculate hashrate from standard channels
Expand Down
Loading