Skip to content

Commit

Permalink
nodejs/waku_addon.c: update C calls to latest libwaku header
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivansete-status committed Dec 18, 2023
1 parent 889c43a commit 4d847a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/nodejs/waku_addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ static napi_value WakuNew(napi_env env, napi_callback_info info) {
return NULL;
}

ctx = waku_init(event_handler, userData);

size_t str_size;
size_t str_size_read;
napi_get_value_string_utf8(env, args[0], NULL, 0, &str_size);
Expand All @@ -202,7 +200,7 @@ static napi_value WakuNew(napi_env env, napi_callback_info info) {
str_size = str_size + 1;
napi_get_value_string_utf8(env, args[0], jsonConfig, str_size, &str_size_read);

WAKU_CALL( waku_new(&ctx, jsonConfig, event_handler, userData) );
ctx = waku_new(jsonConfig, event_handler, userData);

free(jsonConfig);

Expand Down

0 comments on commit 4d847a1

Please sign in to comment.