From 0f74816d43dc9f926aa53dca1c08d004e6536e3e Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 18 Sep 2022 12:37:30 +0200 Subject: feat(users/Profpatsch/netencode.rs): parse multiple stdin values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds support for parsing multiple netencode values from stdin. This is overly complicated for my tastes, but I don’t see a better way of writing this logic that does not read all of stdin before starting to parse the first value. A kingdom for a conduit. Change-Id: Ia4f849d4096c43e887756b756d2a85d7f9cd380a Reviewed-on: https://cl.tvl.fyi/c/depot/+/6631 Autosubmit: Profpatsch Reviewed-by: Profpatsch Tested-by: BuildkiteCI --- users/Profpatsch/read-http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/Profpatsch/read-http.rs') diff --git a/users/Profpatsch/read-http.rs b/users/Profpatsch/read-http.rs index efaded87e6cd..2b24e6beb10a 100644 --- a/users/Profpatsch/read-http.rs +++ b/users/Profpatsch/read-http.rs @@ -220,7 +220,7 @@ fn write_dict<'buf, 'a>( } // iter helper - +// TODO: put into its own module struct Chunkyboi { inner: T, buf: Vec, -- cgit 1.4.1