From 740e63da2b3454e86be84775dc5d1c4570c6e4db Mon Sep 17 00:00:00 2001 From: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:01:52 -0600 Subject: [PATCH] enable zram by default (#2470) --- backend/src/db/model.rs | 2 +- backend/src/version/v0_3_5.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/db/model.rs b/backend/src/db/model.rs index 2e8cf1ede..950c6505a 100644 --- a/backend/src/db/model.rs +++ b/backend/src/db/model.rs @@ -80,7 +80,7 @@ impl Database { .map(|x| format!("{x:X}")) .join(":"), system_start_time: Utc::now().to_rfc3339(), - zram: false, + zram: true, }, package_data: AllPackageData::default(), ui: serde_json::from_str(include_str!("../../../frontend/patchdb-ui-seed.json")) diff --git a/backend/src/version/v0_3_5.rs b/backend/src/version/v0_3_5.rs index bf48ac02c..6613fb888 100644 --- a/backend/src/version/v0_3_5.rs +++ b/backend/src/version/v0_3_5.rs @@ -62,6 +62,7 @@ impl VersionT for Version { } } db.mutate(|v| { + v.as_server_info_mut().as_zram_mut().ser(&true)?; for (_, pde) in v.as_package_data_mut().as_entries_mut()? { for (dependency, info) in pde .as_installed_mut()