Skip to content

Commit

Permalink
ndb: remove unnecessary mut in process_event
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed Dec 17, 2023
1 parent d23235e commit 0545571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ndb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Ndb {
/// Ingest a relay-sent event in the form `["EVENT","subid", {"id:"...}]`
/// This function returns immediately and doesn't provide any information on
/// if ingestion was successful or not.
pub fn process_event(&mut self, json: &str) -> Result<()> {
pub fn process_event(&self, json: &str) -> Result<()> {
// Convert the Rust string to a C-style string
let c_json = CString::new(json).expect("CString::new failed");
let c_json_ptr = c_json.as_ptr();
Expand Down

0 comments on commit 0545571

Please sign in to comment.