Conversation
WalkthroughThe changes extend the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2b0a8b6 to
6ddfa56
Compare
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
x/deployment/handler/server.go (1)
156-162: Don’t ignoreOnGroupClosederrors.If
OnGroupClosedfails, the deployment group is closed but market state can remain partially open. Propagating the error keeps state transitions atomic.🔧 Proposed fix
- _ = ms.market.OnGroupClosed(ctx, group.ID, types.GroupClosed) + if err := ms.market.OnGroupClosed(ctx, group.ID, types.GroupClosed); err != nil { + return nil, err + }- _ = ms.market.OnGroupClosed(ctx, group.ID, types.GroupPaused) + if err := ms.market.OnGroupClosed(ctx, group.ID, types.GroupPaused); err != nil { + return nil, err + }Also applies to: 180-186
Description
Closes: akash-network/support#403
Manual testing results
Insufficient funds scenario:
Unstable deployment scenario:
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.
I have...
!to the type prefix if API or client breaking changeCHANGELOG.md