CNPG's cluster-ro service already handles load balancing and failover, so the application-level Vec + random_range is redundant. - db_read: Vec<DatabaseConnection> → Option<DatabaseConnection> - database_read_replicas returns Option<String> instead of Vec<String> - health checks now explicitly ping both writer() and reader() - remove unused rand dependency from libs/db
26 lines
716 B
TOML
26 lines
716 B
TOML
[package]
|
|
name = "db"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
description.workspace = true
|
|
repository.workspace = true
|
|
readme.workspace = true
|
|
homepage.workspace = true
|
|
license.workspace = true
|
|
keywords.workspace = true
|
|
categories.workspace = true
|
|
documentation.workspace = true
|
|
[lib]
|
|
path = "lib.rs"
|
|
name = "db"
|
|
[dependencies]
|
|
sea-orm = { workspace = true, features = ["sqlx-all", "runtime-tokio"] }
|
|
deadpool-redis = { workspace = true, features = ["rt_tokio_1", "cluster-async", "cluster"] }
|
|
config = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt", "rt-multi-thread"] }
|
|
async-trait = { workspace = true }
|
|
[lints]
|
|
workspace = true
|