From 333136a23fa46c00368ff5dda3ac0dd39dc155f8 Mon Sep 17 00:00:00 2001 From: Augustinas Bacvinka Date: Thu, 5 Jan 2023 15:29:52 +0200 Subject: [PATCH] Use correct binding inside waku_stop method --- waku-bindings/src/node/management.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku-bindings/src/node/management.rs b/waku-bindings/src/node/management.rs index cd79754..fe485ce 100644 --- a/waku-bindings/src/node/management.rs +++ b/waku-bindings/src/node/management.rs @@ -43,7 +43,7 @@ pub fn waku_start() -> Result { /// Stops a Waku node /// as per the [specification](https://rfc.vac.dev/spec/36/#extern-char-waku_stop) pub fn waku_stop() -> Result { - let response = unsafe { CStr::from_ptr(waku_sys::waku_start()) } + let response = unsafe { CStr::from_ptr(waku_sys::waku_stop()) } .to_str() .expect("Response should always succeed to load to a &str");