Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ListFrontends command #1123

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bin/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ pub enum SubCmd {
#[clap(subcommand)]
cmd: ConfigCmd,
},
#[clap(name = "events", about = "receive sozu events about the status of backends")]
#[clap(
name = "events",
about = "receive sozu events about the status of backends"
)]
Events,
}

Expand Down
3 changes: 3 additions & 0 deletions bin/src/command/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@
})
.into(),
),
RequestType::ListFrontends(filters) => {
Some(ContentType::FrontendList(self.state.list_frontends(filters)).into())
}
_ => None,
}
}
Expand Down Expand Up @@ -255,7 +258,7 @@
#[derive(Debug)]
pub struct QueryClustersTask {
pub client_token: Token,
pub request_type: RequestType,

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, true)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (false, stable)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (false, stable)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (false, beta)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (false, beta)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, true)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (false, stable)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (false, stable)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (false, beta)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Test (false, beta)

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Build Sozu 🦀

field `request_type` is never read

Check warning on line 261 in bin/src/command/requests.rs

View workflow job for this annotation

GitHub Actions / Build Sozu 🦀

field `request_type` is never read
pub gatherer: DefaultGatherer,
main_process_response: Option<ResponseContent>,
}
Expand Down
Loading