mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Add version of test files without caching
This commit is contained in:
committed by
Keavon Chambers
parent
4abad688a2
commit
215589ff49
@@ -35,7 +35,6 @@ async fn main() {
|
||||
}
|
||||
|
||||
async fn post_compile_spirv(State(state): State<Arc<AppState>>, Json(compile_request): Json<CompileRequest>) -> Result<Vec<u8>, StatusCode> {
|
||||
println!("compile request: {:?}", compile_request);
|
||||
if let Some(result) = state.cache.read().unwrap().get(&compile_request) {
|
||||
return result.clone();
|
||||
}
|
||||
@@ -45,9 +44,6 @@ async fn post_compile_spirv(State(state): State<Arc<AppState>>, Json(compile_req
|
||||
eprintln!("compilation failed: {}", e);
|
||||
StatusCode::INTERNAL_SERVER_ERROR
|
||||
});
|
||||
if result.is_err() {
|
||||
return result;
|
||||
}
|
||||
state.cache.write().unwrap().insert(compile_request, result.clone());
|
||||
result
|
||||
}
|
||||
|
||||
1
node-graph/graphene-cli/test_files/gray_gpu.graphite
Normal file
1
node-graph/graphene-cli/test_files/gray_gpu.graphite
Normal file
File diff suppressed because one or more lines are too long
1116
node-graph/graphene-cli/test_files/gray_no_cache.graphite
Normal file
1116
node-graph/graphene-cli/test_files/gray_no_cache.graphite
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
983
node-graph/graphene-cli/test_files/hue_no_cache.graphite
Normal file
983
node-graph/graphene-cli/test_files/hue_no_cache.graphite
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
983
node-graph/graphene-cli/test_files/invert_no_cache.graphite
Normal file
983
node-graph/graphene-cli/test_files/invert_no_cache.graphite
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user