Commit 180747fc38fe6aa41483ee73ba1320dc62d6bba5

Authored by Hayk Martirosyan
1 parent 0fd859b7

Remove publish method callback in pub_sub example

Showing 1 changed file with 1 additions and 3 deletions
examples/pub_sub.cpp
... ... @@ -35,9 +35,7 @@ int main(int argc, char *argv[]) {
35 35 this_thread::sleep_for(chrono::milliseconds(10));
36 36  
37 37 publisher.publish("news", "one");
38   - publisher.publish("news", "two", [](const string& topic, const string& msg) {
39   - cout << "published to " << topic << ": " << msg << endl;
40   - });
  38 + publisher.publish("news", "two");
41 39 publisher.publish("sports", "three");
42 40  
43 41 this_thread::sleep_for(chrono::milliseconds(10));
... ...