Skip to content

remove internal usage of solace_message#18

Merged
TamimiGitHub merged 4 commits intomasterfrom
1.2_feedback
Nov 30, 2021
Merged

remove internal usage of solace_message#18
TamimiGitHub merged 4 commits intomasterfrom
1.2_feedback

Conversation

@TamimiGitHub
Copy link
Contributor

No description provided.

# Modifying the outbond message instead of creating a new one
outbound_msg.solace_message.message_set_binary_attachment_string(f'{message_body} --> {msgSeqNum}')
outbound_msg.solace_message.set_message_application_message_id(f'sample_id {msgSeqNum}')
time.sleep(0.1)

Choose a reason for hiding this comment

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

time.sleep should not be necessary when using back the default back pressure elastic. Why is this here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had it for demo purposes to show better show the flow of messages. I have however commented it out but kept it in case

time.sleep(0.1)
# Check https://docs.solace.com/API-Developer-Online-Ref-Documentation/python/source/rst/solace.messaging.config.solace_properties.html for additional message properties
additional_properties = {APPLICATION_MESSAGE_ID: f'sample_id {msgSeqNum}'}
# Creating a dynamic outbond message

Choose a reason for hiding this comment

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

typo of outbund?

# Check https://docs.solace.com/API-Developer-Online-Ref-Documentation/python/source/rst/solace.messaging.config.solace_properties.html for additional message properties
additional_properties = {APPLICATION_MESSAGE_ID: f'sample_id {msgSeqNum}'}
# Creating a dynamic outbond message
outbound_message = message_builder.build(f'{message_body} --> {msgSeqNum}', additional_message_properties=additional_properties)

Choose a reason for hiding this comment

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

Might be nice to comment that applciation id is override from the value of set in the builder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah that's a good idea 👍 will add it now

@TamimiGitHub
Copy link
Contributor Author

I'll go ahead and merge this + add a 1.2 tag to master

@TamimiGitHub TamimiGitHub merged commit 2507d7f into master Nov 30, 2021
@TamimiGitHub TamimiGitHub deleted the 1.2_feedback branch November 30, 2021 14:19
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.

2 participants