Skip to content

Commit

Permalink
Remove mut in ephemera
Browse files Browse the repository at this point in the history
  • Loading branch information
octol committed Sep 29, 2023
1 parent 9b522ef commit 8097f74
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ephemera/src/core/api_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl ApiCmdProcessor {
}

fn ephemera_config<A: Application>(
ephemera: &mut Ephemera<A>,
ephemera: &Ephemera<A>,
reply: Sender<api::Result<ApiEphemeraConfig>>,
) {
let node_info = ephemera.node_info.clone();
Expand Down Expand Up @@ -202,7 +202,7 @@ impl ApiCmdProcessor {
}

async fn query_last_block<A: Application>(
ephemera: &mut Ephemera<A>,
ephemera: &Ephemera<A>,
reply: Sender<api::Result<ApiBlock>>,
) {
let response = match ephemera.storage.lock().await.get_last_block() {
Expand Down Expand Up @@ -244,7 +244,7 @@ impl ApiCmdProcessor {
}

async fn query_block_by_hash<A: Application>(
ephemera: &mut Ephemera<A>,
ephemera: &Ephemera<A>,
block_hash: &str,
reply: Sender<api::Result<Option<ApiBlock>>>,
) {
Expand Down Expand Up @@ -319,7 +319,7 @@ impl ApiCmdProcessor {
}

async fn query_block_broadcast_info<A: Application>(
ephemera: &mut Ephemera<A>,
ephemera: &Ephemera<A>,
block_id: &str,
reply: Sender<api::Result<Option<ApiBlockBroadcastInfo>>>,
) {
Expand All @@ -346,7 +346,7 @@ impl ApiCmdProcessor {
.expect("Error sending QueryBlockBroadcastGroup response to api");
}
async fn verify_message_in_block<A: Application>(
ephemera: &mut Ephemera<A>,
ephemera: &Ephemera<A>,
block_hash: String,
message_hash: String,
index: usize,
Expand Down

0 comments on commit 8097f74

Please sign in to comment.