Skip to content

Commit

Permalink
fix segmentation failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibd committed Dec 4, 2023
1 parent 7d15f51 commit 6e7c139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Consumer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ Napi::Value Consumer::BatchReceive(const Napi::CallbackInfo &info) {
pulsar_message_t *rawMessage = pulsar_messages_get(rawMessages, i);
pulsar_message_t *message = pulsar_message_create();
pulsar_message_copy(rawMessage, message);
Napi::Object obj = Message::NewInstance(
{}, std::shared_ptr<pulsar_message_t>(message, pulsar_message_free));
Napi::Object obj =
Message::NewInstance({}, std::shared_ptr<pulsar_message_t>(message, pulsar_message_free));
jsArray.Set(i, obj);
}
pulsar_messages_free(rawMessages);
Expand Down

0 comments on commit 6e7c139

Please sign in to comment.