File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ byte-pool = "0.2.1"
2020lazy_static = " 1.4.0"
2121futures-core = " 0.3.1"
2222log = " 0.4"
23+ async-channel = " 1.5.1"
2324
2425[dev-dependencies ]
2526pretty_assertions = " 0.6.1"
Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ mod tests {
523523 . as_bytes ( ) ,
524524 ) ;
525525
526- let ( s, _r) = async_std :: sync :: channel ( 1 ) ;
526+ let ( s, _r) = async_channel :: bounded ( 1 ) ;
527527 let sender = Sender :: new ( s) ;
528528 let mut decoder = ChunkedDecoder :: new ( input, sender) ;
529529
@@ -549,7 +549,7 @@ mod tests {
549549 input. extend ( vec ! [ b'Z' ; 2048 ] ) ;
550550 input. extend ( b"\r \n 0\r \n \r \n " ) ;
551551
552- let ( s, _r) = async_std :: sync :: channel ( 1 ) ;
552+ let ( s, _r) = async_channel :: bounded ( 1 ) ;
553553 let sender = Sender :: new ( s) ;
554554 let mut decoder = ChunkedDecoder :: new ( async_std:: io:: Cursor :: new ( input) , sender) ;
555555
@@ -579,7 +579,7 @@ mod tests {
579579 \r \n "
580580 . as_bytes ( ) ,
581581 ) ;
582- let ( s, r) = async_std :: sync :: channel ( 1 ) ;
582+ let ( s, r) = async_channel :: bounded ( 1 ) ;
583583 let sender = Sender :: new ( s) ;
584584 let mut decoder = ChunkedDecoder :: new ( input, sender) ;
585585
You can’t perform that action at this time.
0 commit comments