-
Notifications
You must be signed in to change notification settings - Fork 2
#69 Improve publish delivering to subscribers part 4 #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#69 Improve publish delivering to subscribers part 4 #135
Conversation
…livering-to-subscribers
…-publish-delivering-to-subscribers-part-2
…livering-to-subscribers-part-2 # Conflicts: # core-service/src/main/java/javasabr/mqtt/service/publish/handler/impl/Qos1MqttPublishOutMessageHandler.java # core-service/src/main/java/javasabr/mqtt/service/publish/handler/impl/Qos2MqttPublishOutMessageHandler.java # core-service/src/main/java/javasabr/mqtt/service/publish/handler/impl/TrackableMqttPublishOutMessageHandler.java # core-service/src/main/java/javasabr/mqtt/service/session/impl/InMemoryProcessingPublishes.java
…improve-publish-delivering-to-subscribers-part-3
…livering-to-subscribers-part-3 # Conflicts: # network/src/main/java/javasabr/mqtt/network/message/out/PublishReleaseMqtt311OutMessage.java
…improve-publish-delivering-to-subscribers-part-4
…livering-to-subscribers-part-4
Test Coverage Report
|
core-service/src/main/java/javasabr/mqtt/service/AclService.java
Outdated
Show resolved
Hide resolved
| handleNotSupportedRetain(user); | ||
| return true; | ||
| } | ||
| return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the following style is morу understandable to the reader, don't you think so?
if (retain && !connectionConfig.retainAvailable()) {
log.warning(user.clientId(), "[%s] 'RETAIN' option is not supported"::formatted);
handleNotSupportedRetain(user);
return true;
} else {
return false;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crazyrokr I still totally don't understand why it's better
| return true; | ||
| } | ||
| } | ||
| return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as the comment above
#69