Skip to content

Commit

Permalink
Fix use of deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Nov 8, 2023
1 parent 55ddd21 commit f523fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Program
publishMsg(const std::string& msg)
{
// Encode the message into a Content TLV block, which is what the SVSync API expects
auto block = ndn::encoding::makeBinaryBlock(ndn::tlv::Content, msg.data(), msg.size());
auto block = ndn::encoding::makeStringBlock(ndn::tlv::Content, msg);
m_svs->publishData(block, ndn::time::milliseconds(1000));
}

Expand Down

0 comments on commit f523fe3

Please sign in to comment.