delete useless admin commands

To clear caches, restart the server. We may want to consider adding the
cache sizes and database memory usage as metrics in the future.
This commit is contained in:
Charles Hall 2024-09-30 20:25:23 -07:00
parent 6a44d0af2b
commit e0cf163486
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
7 changed files with 11 additions and 195 deletions

View file

@ -90,8 +90,6 @@ pub(crate) trait Data: Send + Sync {
async fn watch(&self, user_id: &UserId, device_id: &DeviceId)
-> Result<()>;
fn cleanup(&self) -> Result<()>;
fn memory_usage(&self) -> String;
fn clear_caches(&self, amount: u32);
fn load_keypair(&self) -> Result<Ed25519KeyPair>;
fn remove_keypair(&self) -> Result<()>;
/// Only extends the cached keys, not moving any verify_keys to