From 0545571827bf64e06250f094d65775acd2a1165e Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 17 Dec 2023 13:13:29 -0800 Subject: [PATCH] ndb: remove unnecessary mut in process_event --- src/ndb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ndb.rs b/src/ndb.rs index dec0b57..98ed3a9 100644 --- a/src/ndb.rs +++ b/src/ndb.rs @@ -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();