Skip to content

refactor main#102

Merged
vilgotf merged 2 commits into
trunkfrom
vilgotf/refactor
Feb 21, 2026
Merged

refactor main#102
vilgotf merged 2 commits into
trunkfrom
vilgotf/refactor

Conversation

@vilgotf

@vilgotf vilgotf commented Feb 21, 2026

Copy link
Copy Markdown
Member

Simplifies main by grouping related items and removing nesting.

Comment thread src/main.rs
}

fn parse_env<T>(key: &str) -> Result<Option<T>, Box<dyn Error>>
fn parse_env<F>(key: &str) -> Result<Option<F>, Box<dyn Error>>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generic type of FromStr is idiomatically called F instead of T.

Comment thread src/main.rs Outdated
info!("Listening on http://{}", address);

let mut tasks = JoinSet::new();
let tasks = TaskTracker::new();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memory leak

@vilgotf vilgotf merged commit bcc788a into trunk Feb 21, 2026
8 checks passed
@vilgotf vilgotf deleted the vilgotf/refactor branch February 21, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants