Skip to content

Commit

Permalink
fix: relaxing the condition which can be activated inspector feature (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nyannyacha committed May 23, 2024
1 parent 8ff5c47 commit 0edba27
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,7 @@ fn main() -> Result<(), anyhow::Error> {
.or(sub_matches.get_one::<SocketAddr>("inspect-wait")),
);

let maybe_inspector_option = if inspector.is_some()
&& !maybe_supervisor_policy
.as_ref()
.map(SupervisorPolicy::is_oneshot)
.unwrap_or(false)
{
bail!(
"specifying `oneshot` policy is required to enable the inspector feature"
);
} else if let Some((key, addr)) = inspector {
let maybe_inspector_option = if let Some((key, addr)) = inspector {
Some(get_inspector_option(key.as_str(), addr).unwrap())
} else {
None
Expand Down

0 comments on commit 0edba27

Please sign in to comment.