Skip to content

Commit

Permalink
fix(iroh-bytes): range spec seq identification of single blobs (#1421)
Browse files Browse the repository at this point in the history
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [ ] Self-review.
- [ ] Documentation updates if relevant.
- [ ] Tests if relevant.
  • Loading branch information
divagant-martian authored Aug 28, 2023
1 parent 34c97bb commit c3e701f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iroh-bytes/src/protocol/range_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl RangeSpecSeq {
}
let (fst_ofs, fst_val) = &self.0[0];
let (snd_ofs, snd_val) = &self.0[1];
if *snd_ofs - *fst_ofs == 1 && snd_val.is_empty() {
if *snd_ofs == 1 && snd_val.is_empty() {
Some((*fst_ofs, fst_val))
} else {
None
Expand Down

0 comments on commit c3e701f

Please sign in to comment.