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

fix(http): optimize message reply processing #2

Merged
merged 4 commits into from
Jan 16, 2021
Merged

fix(http): optimize message reply processing #2

merged 4 commits into from
Jan 16, 2021

Conversation

tigercl
Copy link

@tigercl tigercl commented Jan 15, 2021

Tag 0.1.1 is required after merging this PR

@tigercl tigercl added this to the 4.2.6 milestone Jan 15, 2021
ok;
({_, {From, _, _}}) ->
gen_server:reply(From, {error, Reason})
end, maps:to_list(Requests)),
Copy link
Member

Choose a reason for hiding this comment

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

Maybe maps:fold/3 is better than maps:to_list/1 + lists:foreach/2?

@HJianBo HJianBo merged commit 93fdf9a into main Jan 16, 2021
@HJianBo HJianBo deleted the fix/http branch January 16, 2021 02:43
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.

None yet

2 participants