Skip to content

Commit

Permalink
Merge branch 'development' into dependabot/docker/development/rust-1.…
Browse files Browse the repository at this point in the history
…76.0
  • Loading branch information
JarvisCraft authored Mar 4, 2024
2 parents e68780d + bad5073 commit 9cc1a2e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ pull_request_rules:
- base=development
actions:
queue:
method: merge
method: squash
name: dependabot-updates
7 changes: 2 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,21 @@ struct CommandLineOptions {
flavor: OutputFlavor,
}

fn main() {
let options = CommandLineOptions::parse();

run(options);
}

#[tokio::main(flavor = "current_thread")]
async fn main() {
let CommandLineOptions {
async fn run(
CommandLineOptions {
hostname,
port,
timeout,
flavor,
} = CommandLineOptions::parse();

}: CommandLineOptions,
) {
let hostname = hostname.as_str();

match TcpStream::connect((hostname, port)).await {
Expand Down

0 comments on commit 9cc1a2e

Please sign in to comment.