aboutsummaryrefslogtreecommitdiff
path: root/src/recv.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-13 12:25:37 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-13 12:25:37 +0200
commitc00676feba3819883b2888799d5f743c4ca9bca0 (patch)
tree449b89efacadaa7f57b90f4d489c585f8ef2b19a /src/recv.rs
parent18d5abc981faf2d76ced42bad5cb69aa83128832 (diff)
downloadnetapp-c00676feba3819883b2888799d5f743c4ca9bca0.tar.gz
netapp-c00676feba3819883b2888799d5f743c4ca9bca0.zip
Uniformize flag naming
Diffstat (limited to 'src/recv.rs')
-rw-r--r--src/recv.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/recv.rs b/src/recv.rs
index 8909190..0de7bef 100644
--- a/src/recv.rs
+++ b/src/recv.rs
@@ -91,8 +91,8 @@ pub(crate) trait RecvLoop: Sync + 'static {
continue;
}
- let has_cont = (size & CHUNK_HAS_CONTINUATION) != 0;
- let is_error = (size & ERROR_MARKER) != 0;
+ let has_cont = (size & CHUNK_FLAG_HAS_CONTINUATION) != 0;
+ let is_error = (size & CHUNK_FLAG_ERROR) != 0;
let size = (size & CHUNK_LENGTH_MASK) as usize;
let mut next_slice = vec![0; size as usize];
read.read_exact(&mut next_slice[..]).await?;