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

add ICQ for unbonding queue #19

Merged
merged 2 commits into from
Feb 14, 2024
Merged

Conversation

foxpy
Copy link
Contributor

@foxpy foxpy commented Dec 27, 2023

No description provided.

@oldremez oldremez marked this pull request as draft January 10, 2024 09:52
@foxpy foxpy force-pushed the feat/LIDO-85-query-unbonding-queue branch 3 times, most recently from 6b5f872 to 3538a83 Compare January 17, 2024 08:04
@foxpy foxpy changed the title wip [BROKEN]: unbonding queue add ICQ for unbonding queue Jan 18, 2024
@foxpy foxpy marked this pull request as ready for review January 18, 2024 07:57
@foxpy foxpy force-pushed the feat/LIDO-85-query-unbonding-queue branch 3 times, most recently from ce5fe98 to bba5ab8 Compare February 11, 2024 23:00
@foxpy foxpy force-pushed the feat/LIDO-85-query-unbonding-queue branch 2 times, most recently from 29da5f6 to 03cc1c3 Compare February 14, 2024 00:33
@foxpy foxpy force-pushed the feat/LIDO-85-query-unbonding-queue branch from 03cc1c3 to 830eec5 Compare February 14, 2024 10:04
},
)?;

response = response.add_submessage(SubMsg::reply_on_success(
Copy link
Member

Choose a reason for hiding this comment

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

You can add all submessages to one vector with type Vec<SubMsg<NeutronMsg>> and attach them in response using add_submessages. In this case there will be no need need line 295.

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 will still have to define this vector of messages instead of response.

I will check out if I can collect these messages into a vector using iterators only. If not, I don't think we can refactor this

Copy link
Member

Choose a reason for hiding this comment

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

In this case you will not be required to mutate response every time

Copy link
Member

Choose a reason for hiding this comment

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

nice, I did the same in my PR :)

@oldremez oldremez merged commit 7db72b3 into main Feb 14, 2024
11 checks passed
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.

4 participants