Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Remove debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay committed Aug 19, 2020
1 parent 93eb8db commit 8b2c239
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ pub trait InstructionMeter {

struct DefaultInstructionMeter {}
impl InstructionMeter for DefaultInstructionMeter {
fn consume(&mut self, _amount: u64) {
println!("default consume {:?}", _amount);
}
fn consume(&mut self, _amount: u64) {}
fn get_remaining(&self) -> u64 {
u64::MAX
}
Expand Down Expand Up @@ -847,7 +845,6 @@ impl<'a, E: UserDefinedError> EbpfVm<'a, E> {
},
_ => return Err(EbpfError::UnsupportedInstruction(pc)),
}
println!("last {:?} remaining {:?} remaining {:?}", self.last_insn_count, remaining_insn_count, instruction_meter.get_remaining());
if self.last_insn_count >= remaining_insn_count {
return Err(EbpfError::ExceededMaxInstructions(self.total_insn_count));
}
Expand Down

0 comments on commit 8b2c239

Please sign in to comment.