commit 0545571827bf64e06250f094d65775acd2a1165e
parent d23235e03b1b5c54beeefe3f241973ce94a48dea
Author: William Casarin <jb55@jb55.com>
Date: Sun, 17 Dec 2023 13:13:29 -0800
ndb: remove unnecessary mut in process_event
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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();