Demogorgon314 commented on code in PR #98:
URL: https://github.com/apache/pulsar-client-cpp/pull/98#discussion_r1012480772
##########
lib/OpSendMsg.h:
##########
@@ -59,6 +60,13 @@ struct OpSendMsg {
if (sendCallback_) {
sendCallback_(result, messageId);
}
+ for (const auto& trackerCallback : trackerCallbacks_) {
+ trackerCallback(result);
+ }
+ }
+
+ void addTrackerCallback(std::function<void(Result)> trackerCallback) {
Review Comment:
nit
```suggestion
void addTrackerCallback(const std::function<void(Result)>
trackerCallback) {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]