enable zram by default (#2470)

This commit is contained in:
Aiden McClelland
2023-10-23 15:01:52 -06:00
committed by GitHub
parent a69cae22dd
commit 740e63da2b
2 changed files with 2 additions and 1 deletions

View File

@@ -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"))

View File

@@ -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()