From 23b9d34e162a9cf27b519c1fe075785be25c46e5 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Fri, 10 Jun 2022 10:00:59 +0100 Subject: Add configurable history length (#447) * Add configurable history length This allows servers to decide the max length of each history item they want to store! Some users might have much larger history lines than others. This setting can be set to 0 to allow for unlimited history length. This is not recommended for a public server install, but for a private one it can work nicely. * Format lol --- atuin-server/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'atuin-server/src/lib.rs') diff --git a/atuin-server/src/lib.rs b/atuin-server/src/lib.rs index 7be54e58..571c09bb 100644 --- a/atuin-server/src/lib.rs +++ b/atuin-server/src/lib.rs @@ -19,7 +19,7 @@ pub mod settings; pub async fn launch(settings: Settings, host: String, port: u16) -> Result<()> { let host = host.parse::()?; - let postgres = Postgres::new(settings.db_uri.as_str()) + let postgres = Postgres::new(settings.clone()) .await .wrap_err_with(|| format!("failed to connect to db: {}", settings.db_uri))?; -- cgit v1.3.1