mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-29 07:50:59 +08:00
To avoid buffering large amounts of data in the process, we set the worker channel size to `64`. Keep in mind that this is one `ChannelEvent`, not one byte. `ChannelEvent::Data` can already contain an arbitrary amount of data via its `Vec<u8>`, but in practice the maximum is 8192, due to the use of `io::copy`. We also remove an unused function, and move the flushing to the `ChannelFlushWriter`.