Skip to content

Commit 36cb8a5

Browse files
authored
Merge pull request #86 from rusty-sec/match_body
fix bar
2 parents 4bc0f05 + fdc43aa commit 36cb8a5

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/lib.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub mod cli;
2020
pub mod lua;
2121

2222
use cli::{
23-
bar::{create_progress, show_msg, MessageLevel, BAR},
23+
bar::{show_msg, MessageLevel, BAR},
2424
errors::CliErrors,
2525
input::load_scripts::{get_scripts, valid_scripts},
2626
};
@@ -87,9 +87,6 @@ impl Lotus {
8787
scan_type: ScanTypes,
8888
exit_after: i32,
8989
) {
90-
{
91-
BAR.lock().unwrap().suspend(|| {})
92-
};
9390
let loaded_scripts = {
9491
if let ScanTypes::HOSTS = scan_type {
9592
let scripts = get_scripts(self.script_path.clone());
@@ -108,9 +105,6 @@ impl Lotus {
108105
loaded_scripts
109106
}
110107
};
111-
{
112-
create_progress(loaded_scripts.len() as u64)
113-
};
114108
if self.output.is_none() {
115109
show_msg("Output argument is missing", MessageLevel::Error);
116110
std::process::exit(1);

src/main.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ async fn main() -> Result<(), std::io::Error> {
4141
show_msg(&format!("PATHS: {}", opts.target_data.paths.len()), MessageLevel::Info);
4242
// Open two threads for URL/HOST scanning
4343
create_progress(
44-
(opts.target_data.urls.len()
45-
* opts.target_data.hosts.len()
46-
* opts.target_data.paths.len()) as u64,
44+
opts.target_data.urls.len() as u64,
4745
);
4846
*SLEEP_TIME.lock().unwrap() = opts.delay;
4947
*REQUESTS_LIMIT.lock().unwrap() = opts.requests_limit;

0 commit comments

Comments
 (0)