Skip to content

Commit

Permalink
move reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasTNO committed Dec 6, 2024
1 parent 4e6b391 commit 0674a8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ where

coverage_client: Box<dyn CoverageClient>,
endpoint_client: Arc<Mutex<EndpointCoverageClient>>,
reporter: &'h Option<MySqLite>,
reporter: Option<MySqLite>,

manual_interrupt: Arc<AtomicBool>,
maybe_timeout_secs: Option<Duration>,
Expand All @@ -93,7 +93,6 @@ where
config: &'h Configuration,
coverage_client: Box<dyn CoverageClient>,
endpoint_client: Arc<Mutex<EndpointCoverageClient>>,
reporter: &'h Option<MySqLite>,
) -> anyhow::Result<Self> {
let (authentication, cookie_store, http_client) = crate::build_http_client()?;

Expand All @@ -109,7 +108,7 @@ where

coverage_client,
endpoint_client,
reporter,
reporter: crate::reporting::sqlite::get_reporter(config)?,

manual_interrupt: setup_interrupt()?,
maybe_timeout_secs: config.timeout.map(|t| Duration::from_secs(t.get())),
Expand Down
3 changes: 0 additions & 3 deletions src/fuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,13 @@ pub fn fuzz() -> Result<()> {
let power = StdPowerMutationalStage::new(mutator_openapi);
let mut stages = tuple_list!(calibration, power);

let reporter = crate::reporting::sqlite::get_reporter(config)?;

// Create the executor for an in-process function with just one observer
let mut executor = SequenceExecutor::new(
collective_observer,
&api,
config,
code_coverage_client,
endpoint_coverage_client.clone(),
&reporter,
)?;

// Fire an event to print the initial corpus size
Expand Down

0 comments on commit 0674a8d

Please sign in to comment.