aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-04-06 16:53:39 +0200
committerTrinity Pointard <trinity.pointard@gmail.com>2021-04-06 16:53:39 +0200
commit6cbc8d6ec93b832a301a5402f1b1ae70b07a2be3 (patch)
treeead4cd90d954db614d4c3e60ef06c2844108d6d6 /src/api
parentb3b0b20d722bd001ef971b029a2165a2407fec83 (diff)
downloadgarage-6cbc8d6ec93b832a301a5402f1b1ae70b07a2be3.tar.gz
garage-6cbc8d6ec93b832a301a5402f1b1ae70b07a2be3.zip
mark branch as unreachable
Diffstat (limited to 'src/api')
-rw-r--r--src/api/s3_put.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/s3_put.rs b/src/api/s3_put.rs
index d2702940..d023bcef 100644
--- a/src/api/s3_put.rs
+++ b/src/api/s3_put.rs
@@ -313,7 +313,7 @@ impl BodyChunker {
let block = self.buf.drain(..length).collect::<Vec<u8>>();
Ok(Some(block))
} else {
- Ok(None)
+ unreachable!("FastCDC returned not chunk")
}
}
}