Skip to content

Conversation

@rnewson
Copy link
Member

@rnewson rnewson commented Sep 10, 2020

We need to call StartFun as it might add headers, etc.

@rnewson rnewson force-pushed the fix-buffer-response-true branch 3 times, most recently from 15dd37a to f6adde2 Compare September 10, 2020 21:13
Copy link
Member

@davisp davisp left a comment

Choose a reason for hiding this comment

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

+1. Those multi-clause-anonymous-inline-functions are always kinda weird so whatever you feel like doing on that style suggestion is up to you.

Comment on lines 865 to 869
lists:foreach(
fun
("") -> ok;
(Chunk) -> send_chunk(Resp, Chunk)
end, lists:reverse(Chunks)),
Copy link
Member

Choose a reason for hiding this comment

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

This formatting is kinda weird. Mebbe something like such?

lists:foreach(fun
    ([]) -> ok;
    (Chunk) -> send_chunk(Resp, Chunk)
end, lists:reverse(Chunks)),

We need to call StartFun as it might add headers, etc.
@rnewson rnewson force-pushed the fix-buffer-response-true branch from f6adde2 to 4b77c06 Compare September 10, 2020 21:36
@rnewson rnewson merged commit 1c6a738 into master Sep 10, 2020
@rnewson rnewson deleted the fix-buffer-response-true branch September 10, 2020 22:00
rnewson added a commit that referenced this pull request Sep 10, 2020
We need to call StartFun as it might add headers, etc.
rnewson added a commit that referenced this pull request Sep 10, 2020
We need to call StartFun as it might add headers, etc.
rnewson added a commit that referenced this pull request Sep 11, 2020
We need to call StartFun as it might add headers, etc.
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.

2 participants