Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mqtt Cluster
Commits
f5ccd258
Commit
f5ccd258
authored
3 years ago
by
luxurong
Browse files
Options
Download
Email Patches
Plain Diff
修改bug
parent
6e17de68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
smqtt-common/src/main/java/io/github/quickmsg/common/channel/MqttChannel.java
+1
-0
...n/java/io/github/quickmsg/common/channel/MqttChannel.java
smqtt-core/src/main/java/io/github/quickmsg/core/protocol/CommonProtocol.java
+1
-1
...java/io/github/quickmsg/core/protocol/CommonProtocol.java
with
2 additions
and
1 deletion
+2
-1
smqtt-common/src/main/java/io/github/quickmsg/common/channel/MqttChannel.java
+
1
-
0
View file @
f5ccd258
...
...
@@ -249,6 +249,7 @@ public class MqttChannel {
}
else
{
return
mqttChannel
.
write
(
Mono
.
just
(
mqttMessage
));
}
}
private
int
getMessageId
(
MqttMessage
mqttMessage
)
{
Object
object
=
mqttMessage
.
variableHeader
();
if
(
object
instanceof
MqttPublishVariableHeader
)
{
...
...
This diff is collapsed.
Click to expand it.
smqtt-core/src/main/java/io/github/quickmsg/core/protocol/CommonProtocol.java
+
1
-
1
View file @
f5ccd258
...
...
@@ -70,7 +70,7 @@ public class CommonProtocol implements Protocol<MqttMessage> {
subscribeTopics
.
stream
()
.
map
(
subscribeTopic
->
subscribeTopic
.
getMqttChannel
()
.
write
(
MessageUtils
.
wrapPublishMessage
(
msg
,
subscribeTopic
.
getQoS
(),
subscribeTopic
.
getMqttChannel
().
generateMessageId
()),
true
)
subscribeTopic
.
getMqttChannel
().
generateMessageId
()),
subscribeTopic
.
getQoS
().
value
()
>
0
)
).
collect
(
Collectors
.
toList
()))
.
then
(
mqttChannel
.
cancelRetry
(
MqttMessageType
.
PUBREC
,
id
))
.
then
(
mqttChannel
.
write
(
MqttMessageBuilder
.
buildPublishComp
(
id
),
false
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help