Use correct binding inside waku_stop method

This commit is contained in:
Augustinas Bacvinka 2023-01-05 15:29:52 +02:00
parent f9b8c8eb43
commit 333136a23f
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ pub fn waku_start() -> Result<bool> {
/// Stops a Waku node
/// as per the [specification](https://rfc.vac.dev/spec/36/#extern-char-waku_stop)
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()
.expect("Response should always succeed to load to a &str");