Skip to content

Commit

Permalink
no io cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed Sep 13, 2024
1 parent 99c2452 commit 6f49528
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions projects/ssddOnTop/src/ir/eval_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ use crate::value::Value;
use std::num::NonZeroU64;

pub async fn eval_io(io: &IO, ctx: &mut EvalContext<'_>) -> anyhow::Result<Value> {
let key = io.cache_key(ctx);
let val = eval_io_inner(io, ctx).await?;
Ok(val)
/* let key = io.cache_key(ctx);
if let Some(val) = ctx.request_ctx.cache.get(&key).await? {
Ok(val.clone())
Expand All @@ -17,7 +19,7 @@ pub async fn eval_io(io: &IO, ctx: &mut EvalContext<'_>) -> anyhow::Result<Value
.set(key, val.clone(), NonZeroU64::MAX)
.await?;
Ok(val)
}
}*/
}

async fn eval_io_inner(io: &IO, ctx: &mut EvalContext<'_>) -> Result<Value, CacheErr> {
Expand Down

0 comments on commit 6f49528

Please sign in to comment.