Skip to content

Commit

Permalink
Make Shell:query immutable again
Browse files Browse the repository at this point in the history
  • Loading branch information
james-chf committed Aug 11, 2022
1 parent 9347707 commit 67d9d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/src/lib/node/ledger/shell/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ where
/// right query method and returns the result (which may be
/// the default if `path` is not a supported string.
/// INVARIANT: This method must be stateless.
pub fn query(&mut self, query: request::Query) -> response::Query {
pub fn query(&self, query: request::Query) -> response::Query {
use rpc::Path;
let height = match query.height {
0 => self.storage.get_block_height().0,
Expand Down

0 comments on commit 67d9d43

Please sign in to comment.