Skip to content

Commit f5966cd

Browse files
committed
remove commetn
1 parent 67085ea commit f5966cd

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/utils/html.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@ pub(crate) async fn rewrite_html_stream<R>(
3131
where
3232
R: AsyncRead + Unpin + 'static,
3333
{
34-
// TODO:
35-
// - create a background normal thread for the rewriter
36-
// - perhaps use render_in_threadpool? then the CPU usage is also possible to limit?
37-
// - can receive chunks of input data with channel 1
38-
// - can transfer back chunks of response data on channel 2
39-
// - perhaps channel 3 as one-shot to finish / exit? or is it enough to send zero bytes on
40-
// channel 1? if we use render_in_threadpool, this is solved.
41-
// then
42-
// the async stream can read and yield from the channels
43-
//
44-
4534
stream!({
4635
let (data_sender, data_receiver) = std::sync::mpsc::channel::<Option<Vec<u8>>>();
4736
let (result_sender, mut result_receiver) = tokio::sync::mpsc::unbounded_channel::<Bytes>();

0 commit comments

Comments
 (0)