src/bin/test_chunk_speed2.rs: test max chunk size
This commit is contained in:
parent
ff77dbbea3
commit
751030aa7c
@ -33,6 +33,7 @@ fn main() {
|
||||
|
||||
chunk_stream
|
||||
.for_each(move |chunk| {
|
||||
if chunk.len() > 16*1024*1024 { panic!("Chunk too large {}", chunk.len()); }
|
||||
repeat.fetch_add(1, Ordering::SeqCst);
|
||||
stream_len.fetch_add(chunk.len(), Ordering::SeqCst);
|
||||
println!("Got chunk {}", chunk.len());
|
||||
|
Loading…
Reference in New Issue
Block a user