forked from radius-project/radius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doing some updates to the magpie (radius-project#6925)
# Description **_Opened this PR not from the fork because there are some actions that I would like to test and can't be triggered from a fork._** 1. Updating some packages 2. Changing the way we append string to an array 3. Adding missing context ## Type of change - This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional). Fixes: radius-project#6932 ## Auto-generated summary <!-- copilot:all --> ### <samp>🤖[[deprecated]](https://githubnext.com/copilot-for-prs-sunset) Generated by Copilot at db8fccb</samp> ### Summary 🐰📦🚀 <!-- 1. 🐰 - This emoji represents RabbitMQ, the message broker that magpiego uses for servicebus operations. It also conveys the idea of speed and efficiency, which are improved by using context and simplifying message body conversion. 2. 📦 - This emoji represents the dependencies that were updated in `go.mod`. It suggests the idea of packaging, updating, and delivering software components. It also implies that the changes may affect the compatibility and functionality of the magpiego bindings for different services. 3. 🚀 - This emoji represents the overall performance and reliability improvements that the changes may bring to magpiego. It conveys the idea of launching, accelerating, and scaling up the application. It also implies that the changes may enable new features and capabilities for the users. --> Updated the magpiego bindings for RabbitMQ and servicebus to use context and improve performance and readability. Also upgraded some dependencies in `go.mod` to use the latest versions. > _Oh we're the magpiego crew and we know what to do_ > _We import the context and we update the `go.mod`_ > _We heave away and haul away with RabbitMQ_ > _And we make the servicebus go faster and smoother too_ ### Walkthrough * Import context package and use context.Background() to create a context for RabbitMQ operations ([link](https://github.com/radius-project/radius/pull/6925/files?diff=unified&w=0#diff-7842d685b892c11c5740e574ffc57e49b46f65fec0bfa5180c931822b19f26edR4), [link](https://github.com/radius-project/radius/pull/6925/files?diff=unified&w=0#diff-7842d685b892c11c5740e574ffc57e49b46f65fec0bfa5180c931822b19f26edR53)) * Simplify message body conversion to string in GetMessage function for RabbitMQ binding ([link](https://github.com/radius-project/radius/pull/6925/files?diff=unified&w=0#diff-186427a868cc7f255398e6a829f74396e4ed3f1c16dbe593cfa9e1c313fe3a45L116-R115)) * Remove unused fmt package from servicebus.go file ([link](https://github.com/radius-project/radius/pull/6925/files?diff=unified&w=0#diff-186427a868cc7f255398e6a829f74396e4ed3f1c16dbe593cfa9e1c313fe3a45L5)) * Update go.mod file to use latest versions of mongo-driver, compress, crypto, and text packages ([link](https://github.com/radius-project/radius/pull/6925/files?diff=unified&w=0#diff-069ce70246ee93b05a3149affbf0f507f1a4482e8086c6ebb7dbeafb7df3f77dL17-R17), [link](https://github.com/radius-project/radius/pull/6925/files?diff=unified&w=0#diff-069ce70246ee93b05a3149affbf0f507f1a4482e8086c6ebb7dbeafb7df3f77dL33-R35), [link](https://github.com/radius-project/radius/pull/6925/files?diff=unified&w=0#diff-069ce70246ee93b05a3149affbf0f507f1a4482e8086c6ebb7dbeafb7df3f77dL41-R45)) --------- Signed-off-by: ytimocin <[email protected]>
- Loading branch information
Showing
6 changed files
with
61 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.