Initial integration of new topicTree

This commit is contained in:
Alex Hultman
2021-01-28 17:26:02 +01:00
parent af8094268c
commit ac7c72698d
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ void testCorrectness() {
topicTree = new uWS::TopicTree([&topicTree, &actualResult](uWS::Subscriber *s, uWS::Intersection &intersection) {
intersection.forSubscriber(s, topicTree->getSenderFor(s), [s, &actualResult](std::pair<std::string_view, std::string_view> dataChannels) {
intersection.forSubscriber(topicTree->getSenderFor(s), [s, &actualResult](std::pair<std::string_view, std::string_view> dataChannels) {
actualResult[s].first += dataChannels.first;
actualResult[s].second += dataChannels.second;
});