From 5e7a20ef940bdedd7c91b0d5ae2f37e45fcac765 Mon Sep 17 00:00:00 2001 From: Syrus Date: Wed, 31 Jul 2019 21:20:39 -0700 Subject: [PATCH] Improved metering codebase --- .circleci/config.yml | 2 +- lib/middleware-common/src/metering.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 373704d20..f76c635b0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -114,7 +114,7 @@ jobs: make check make compile-bench-singlepass make compile-bench-llvm - # TODO: add compile-bench-clif when they work + # TODO: add compile-bench-clif when it works - run: name: Integration Tests command: make integration-tests diff --git a/lib/middleware-common/src/metering.rs b/lib/middleware-common/src/metering.rs index e0d392cb6..88eb69c06 100644 --- a/lib/middleware-common/src/metering.rs +++ b/lib/middleware-common/src/metering.rs @@ -138,9 +138,9 @@ mod tests { #[cfg(feature = "llvm")] fn get_compiler(limit: u64) -> impl Compiler { - use wasmer_llvm_backend::code::LLVMModuleCodeGenerator; use wasmer_runtime_core::codegen::{MiddlewareChain, StreamingCompiler}; - let c: StreamingCompiler = + use wasmer_llvm_backend::ModuleCodeGenerator as LLVMMCG; + let c: StreamingCompiler = StreamingCompiler::new(move || { let mut chain = MiddlewareChain::new(); chain.push(Metering::new(limit));