You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace 'subscription' term with the 'stream' across the project
- Rename the 'updated' signal of QGrpcSubscription to
'messageReceived'
- Remove 'Updates' suffix from the generated stream subscribe method
names.
- Update QML gRPC tests. Use unique message identifiers.
auto it = std::find_if(std::begin(dPtr->activeSubscriptions), std::end(dPtr->activeSubscriptions), [subscription](constQGrpcSubscriptionShared &activeSubscription) {
144
-
return *activeSubscription == *subscription;
143
+
auto it = std::find_if(std::begin(dPtr->activeStreams), std::end(dPtr->activeStreams), [stream](constQGrpcStreamShared &activeStream) {
144
+
return *activeStream == *stream;
145
145
});
146
146
147
-
if (it != std::end(dPtr->activeSubscriptions)) {
147
+
if (it != std::end(dPtr->activeStreams)) {
148
148
(*it)->addHandler(handler);
149
-
return *it; //If subscription already exists return it for handling
149
+
return *it; //If stream already exists return it for handling
150
150
}
151
151
152
152
auto errorConnection = std::make_shared<QMetaObject::Connection>();
auto it = std::find_if(std::begin(dPtr->activeSubscriptions), std::end(dPtr->activeSubscriptions), [subscription](QGrpcSubscriptionShared activeSubscription) {
0 commit comments