Skip to content
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

deliver packet not msg from session #843

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

snichme
Copy link
Member

@snichme snichme commented Nov 14, 2024

Session delivers MQTT:Publish instead of Envelope to consumer

@snichme snichme requested a review from a team as a code owner November 14, 2024 10:16
dup: env.redelivered,
qos: qos,
retain: retained,
topic: msg.routing_key.tr(".", "/")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spuun is this .tr really correct?

Copy link
Member

@spuun spuun Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need to convert between topic and routing key here. I think we're storing it as topic.
But if it's a routing key you want to convert . to /.

Copy link
Member

@kickster97 kickster97 Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep thats a rest that i forgot to remove (and i removed it now form mqtt-poc)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing the tr then.

WDYT of the change otherwise?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good :)

@snichme snichme force-pushed the mqtt-deliver-packet-not-msg branch from ead9b8a to f073732 Compare November 14, 2024 21:33
@snichme snichme merged commit d256cd1 into mqtt-poc Nov 14, 2024
15 of 19 checks passed
@snichme snichme deleted the mqtt-deliver-packet-not-msg branch November 14, 2024 21:34
kickster97 pushed a commit that referenced this pull request Nov 21, 2024
* deliver packet not msg from session

* it's already a topic, no convert needed

* fixes
kickster97 pushed a commit that referenced this pull request Dec 18, 2024
* deliver packet not msg from session

* it's already a topic, no convert needed

* fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants