diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-16 23:55:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-16 23:55:12 +0300 |
| commit | 5f3763dda88e0fefbce14afab7cc2c7232a5e2a8 (patch) | |
| tree | 7d77a7e1122dcbd230791d9666aca43c12d3b332 /src/client/endpoint/catalog.rs | |
| parent | 266d6f6d876ab3eb020b88ef6caee0f91776db37 (diff) | |
fix: cache saved machine connection metadata (#4256)
refs #4252
Diffstat (limited to 'src/client/endpoint/catalog.rs')
| -rw-r--r-- | src/client/endpoint/catalog.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/endpoint/catalog.rs b/src/client/endpoint/catalog.rs index 23f26387..e65d1e9e 100644 --- a/src/client/endpoint/catalog.rs +++ b/src/client/endpoint/catalog.rs @@ -331,7 +331,11 @@ fn load_selection_from_path(path: &Path) -> Result<Option<EndpointSelection>, St Ok(Some(selection)) } -fn store_private_json(path: &Path, content: &[u8], description: &str) -> Result<(), String> { +pub(super) fn store_private_json( + path: &Path, + content: &[u8], + description: &str, +) -> Result<(), String> { if content.len() as u64 > MAX_CATALOG_BYTES { return Err(format!("{description} exceeds the storage limit")); } |
