Skip to content

Commit

Permalink
try build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
shibd committed Aug 20, 2024
1 parent 54e6ba3 commit 1f23d83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"targets": [
{
"target_name": "pulsar",
"cflags_cc": ["-std=gnu++11", "-fvisibility=hidden"],
"cflags_cc": ["-std=gnu++11", "-fvisibility=hidden", "-g", "-fsanitize=address"],
"ldflags": ["-fsanitize=address"],
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions", "-std=gnu++14", "-std=gnu++17"],
"include_dirs": [
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pulsar-client",
"version": "1.12.0-rc.0",
"name": "shibaodi-pulsar-client",
"version": "1.11.1-fix.0",
"description": "Pulsar Node.js client",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -61,8 +61,8 @@
"binary": {
"module_name": "pulsar",
"module_path": "./lib/binding/",
"host": "https://archive.apache.org/dist/pulsar/pulsar-client-node/",
"remote_path": "pulsar-client-node-{version}",
"host": "https://github.com/shibd/pulsar-client-node/releases/download/",
"remote_path": "v{version}",
"package_name": "napi-{platform}-{libc}-{arch}.tar.gz"
}
}
3 changes: 3 additions & 0 deletions src/Consumer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ Napi::Value Consumer::BatchReceive(const Napi::CallbackInfo &info) {
auto deferredContext = static_cast<ExtDeferredContext *>(ctx);
auto deferred = deferredContext->deferred;
delete deferredContext;

int* p = nullptr;
*p = 42;

if (result != pulsar_result_Ok) {
deferred->Reject(std::string("Failed to batch receive message: ") + pulsar_result_str(result));
Expand Down

0 comments on commit 1f23d83

Please sign in to comment.