Skip to content

Commit

Permalink
Merge pull request apache#44 from massakam/fix-compilation-warn
Browse files Browse the repository at this point in the history
Fix compilation warning
  • Loading branch information
hrsakai authored Aug 16, 2019
2 parents 4c4518e + e47d92d commit 5132c8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions src/MessageId.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ Napi::Object MessageId::Init(Napi::Env env, Napi::Object exports) {
Napi::HandleScope scope(env);

Napi::Function func = DefineClass(env, "MessageId",
{
StaticMethod("earliest", &MessageId::Earliest, napi_static),
StaticMethod("latest", &MessageId::Latest, napi_static),
StaticMethod("finalize", &MessageId::Finalize, napi_static),
InstanceMethod("serialize", &MessageId::Serialize),
StaticMethod("deserialize", &MessageId::Deserialize, napi_static),
InstanceMethod("toString", &MessageId::ToString)
});
{StaticMethod("earliest", &MessageId::Earliest, napi_static),
StaticMethod("latest", &MessageId::Latest, napi_static),
StaticMethod("finalize", &MessageId::Finalize, napi_static),
InstanceMethod("serialize", &MessageId::Serialize),
StaticMethod("deserialize", &MessageId::Deserialize, napi_static),
InstanceMethod("toString", &MessageId::ToString)});

constructor = Napi::Persistent(func);
constructor.SuppressDestruct();
Expand Down
4 changes: 2 additions & 2 deletions src/ReaderConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class ReaderConfig {
std::string GetTopic();

private:
pulsar_reader_configuration_t *cReaderConfig;
pulsar_message_id_t *cStartMessageId;
std::string topic;
pulsar_message_id_t *cStartMessageId;
pulsar_reader_configuration_t *cReaderConfig;
};

#endif

0 comments on commit 5132c8e

Please sign in to comment.