mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-05-23 10:59:25 +00:00
Use correct binding inside waku_stop method
This commit is contained in:
parent
f9b8c8eb43
commit
333136a23f
@ -43,7 +43,7 @@ pub fn waku_start() -> Result<bool> {
|
|||||||
/// Stops a Waku node
|
/// Stops a Waku node
|
||||||
/// as per the [specification](https://rfc.vac.dev/spec/36/#extern-char-waku_stop)
|
/// as per the [specification](https://rfc.vac.dev/spec/36/#extern-char-waku_stop)
|
||||||
pub fn waku_stop() -> Result<bool> {
|
pub fn waku_stop() -> Result<bool> {
|
||||||
let response = unsafe { CStr::from_ptr(waku_sys::waku_start()) }
|
let response = unsafe { CStr::from_ptr(waku_sys::waku_stop()) }
|
||||||
.to_str()
|
.to_str()
|
||||||
.expect("Response should always succeed to load to a &str");
|
.expect("Response should always succeed to load to a &str");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user