Skip to content

Commit

Permalink
delete telemetry (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHTT authored Sep 25, 2023
1 parent 6c41c82 commit b62d80a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 63 deletions.
3 changes: 1 addition & 2 deletions cli/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@ enum EVMTargetType {
Config
}

pub fn evm_main(args: EvmArgs) {
ityfuzz::telemetry::report_campaign(args.onchain, args.target.clone());
pub fn evm_main(args: EvmArgs) {
let mut target_type: EVMTargetType = match args.target_type {
Some(v) => match v.as_str() {
"glob" => EVMTargetType::Glob,
Expand Down
8 changes: 0 additions & 8 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ pub fn init_sentry() {
release: sentry::release_name!(),
..Default::default()
}));
if let Ok(value) = env::var("NO_TELEMETRY") {
if value == "1" {
println!("Telemetry is disabled.");
unsafe {
ityfuzz::telemetry::TELEMETRY_ENABLED = false;
}
}
}
}

#[derive(Parser)]
Expand Down
4 changes: 0 additions & 4 deletions src/fuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ use crate::evm::vm::EVMState;
use crate::input::ConciseSerde;
use crate::oracle::BugMetadata;
use crate::scheduler::{HasReportCorpus, HasVote};
use crate::telemetry::report_vulnerability;

const STATS_TIMEOUT_DEFAULT: Duration = Duration::from_millis(100);
pub static mut RUN_FOREVER: bool = false;
Expand Down Expand Up @@ -516,9 +515,6 @@ where
}
// find the solution
ExecuteInputResult::Solution => {
report_vulnerability(
unsafe {serde_json::to_string(&ORACLE_OUTPUT).expect("")},
);

println!("\n\n\n😊😊 Found violations! \n\n");
let cur_report = format!(
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ pub mod oracle;
pub mod scheduler;
pub mod state;
pub mod state_input;
pub mod telemetry;
pub mod tracer;
pub mod mutation_utils;

Expand Down
48 changes: 0 additions & 48 deletions src/telemetry.rs

This file was deleted.

0 comments on commit b62d80a

Please sign in to comment.