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
Fix topic name is shown as a pointer rather than string (apache#331)
### Motivation
This is an additional fix to apache#329 because I still observed logs like:
```
Closing consumer for topic 0x6000028e0648
Closing producer for topic 0x600001210b88
```
It's because `HandlerBase::topic_` field is protected and could be
accessed directly from the derived classes.
### Motivation
In `HandlerBase`, make `topic_` private and add two methods `topic()`
and `getTopicPtr()` to get the reference to the string and the shared
pointer. `getTopicPtr()` should only be called when being passed to
`MessageImpl::setTopicName`.
0 commit comments