Skip to content

Commit

Permalink
reset consumer (#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
firesWu committed Dec 2, 2021
1 parent b5db66e commit bae20c1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ impl<T: FromByteSlice> CacheReader<T> {
let bufs = unsafe { self.get_mut_bufs() };
bufs[1] = buf1;
self.cursor.store(0);
self.store_consumer(0);
Ok(())
}

Expand Down

0 comments on commit bae20c1

Please sign in to comment.