Closed dwasse closed 2 weeks ago
A new validation step has been introduced in the statushandler.go
file within the services/rfq/relayer/service
package. This verification ensures that the status of a request remains unchanged since it was last processed before proceeding further in the middleware chain.
Files | Change Summary |
---|---|
services/rfq/relayer/service/statushandler.go | Added a check for the immutability of the request status in the mutexMiddleware function. |
... | Modified the exported function mutexMiddleware to include this new validation. |
sequenceDiagram
participant Client
participant Relayer
participant Middleware
participant StatusChecker
Client->>Relayer: Request Quote
Relayer->>Middleware: Call mutexMiddleware
Middleware->>StatusChecker: Check status
Note right of StatusChecker: Validate unchanged status
alt Status unchanged
StatusChecker-->>Middleware: Status unchanged
Middleware->>Relayer: Proceed with Request
Relayer->>Client: Send Quote Response
else Status changed
StatusChecker-->>Middleware: Status changed
Middleware->>Relayer: Abort request
Relayer->>Client: Send Error Response
end
In the code we weave so tight, A status check in morning light, 🌅 Ensures our steps are always right, Before we delve into the night. Mutex dances, guards the way, Stability shines bright today. ✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 0%
with 13 lines
in your changes missing coverage. Please review.
Project coverage is 25.69165%. Comparing base (
87afd9b
) to head (1d846cb
).
Files | Patch % | Lines |
---|---|---|
services/rfq/relayer/service/statushandler.go | 0.00000% | 13 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
1d846cb
|
Status: | ✅ Deploy successful! |
Preview URL: | https://a39c0657.sanguine-fe.pages.dev |
Branch Preview URL: | https://feat-status-mismatch.sanguine-fe.pages.dev |
Summary by CodeRabbit