There was an error while loading. Please reload this page.
1 parent 048d10f commit cf47a59Copy full SHA for cf47a59
1 file changed
lading/src/neper/flow.rs
@@ -55,7 +55,7 @@ impl<S> FlowMap<S> {
55
/// Insert a flow.
56
pub(crate) fn insert(&mut self, flow: Flow<S>) -> Result<(), FlowMapError> {
57
let idx = flow.token.0 % self.inner.capacity();
58
- if self.inner.len() < idx {
+ if self.inner.len() <= idx {
59
self.inner.resize_with(idx + 1, || None);
60
}
61
if self.inner[idx].is_none() {
0 commit comments