Skip to content

Commit 295dfec

Browse files
candushibd
authored andcommitted
call correct function to set subscription role prefix (#416)
(cherry picked from commit 8b2cfd3)
1 parent 7d15fdb commit 295dfec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ReaderConfig.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ ReaderConfig::ReaderConfig(const Napi::Object &readerConfig, pulsar_reader_liste
7272
std::string subscriptionRolePrefix =
7373
readerConfig.Get(CFG_SUBSCRIPTION_ROLE_PREFIX).ToString().Utf8Value();
7474
if (!subscriptionRolePrefix.empty())
75-
pulsar_reader_configuration_set_reader_name(this->cReaderConfig.get(), subscriptionRolePrefix.c_str());
75+
pulsar_reader_configuration_set_subscription_role_prefix(this->cReaderConfig.get(),
76+
subscriptionRolePrefix.c_str());
7677
}
7778

7879
if (readerConfig.Has(CFG_READ_COMPACTED) && readerConfig.Get(CFG_READ_COMPACTED).IsBoolean()) {

0 commit comments

Comments
 (0)