Foundation follow-up cleanups #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Minor, non-blocking items noted during the Foundation (Plan 0) reviews. Group as low-priority cleanups.
domain.domainis currently an unused island — wiredb/apito its types when the first real entity lands (Plan 1+), so the "everything points inward todomain" rule is exercised, not just aspirational.db. When repository modules arrive, place them inside thedbcrate (consumingpool()internally) and consider makingDb::pool()pub(crate), rather than lettingapi/serverhold&PgPool..clone()inserver::run—config.app_nameis the last use ofconfig, so it can be moved instead of cloned (crates/server/src/lib.rs).crates/server/tests/serve.rsthe spawnedserve(...).unwrap()swallows server errors as a task panic; propagate/await the handle so a server failure surfaces clearly instead of as a confusingreqwesterror.Source: Foundation (Plan 0) per-task + final reviews.