fix: cache calculation
This commit is contained in:
@@ -50,8 +50,7 @@ pub struct TraceReader {
|
||||
impl TraceReader {
|
||||
pub fn open<P: AsRef<Path>>(path: P, max_requests: Option<u64>) -> Result<Self> {
|
||||
let path = path.as_ref();
|
||||
let f = File::open(path)
|
||||
.with_context(|| format!("opening trace {}", path.display()))?;
|
||||
let f = File::open(path).with_context(|| format!("opening trace {}", path.display()))?;
|
||||
Ok(Self {
|
||||
inner: BufReader::with_capacity(1 << 20, f),
|
||||
next_id: 0,
|
||||
|
||||
Reference in New Issue
Block a user