fix(server): remove connection stats feature (#1063)

This commit is contained in:
lollipopkit🏳️‍⚧️
2026-03-07 02:06:45 +08:00
committed by GitHub
parent ac4607371a
commit 04b47a385a
8 changed files with 3 additions and 397 deletions

View File

@@ -225,9 +225,6 @@ class ServersNotifier extends _$ServersNotifier {
Stores.setting.serverOrder.put(newOrder);
Stores.server.delete(id);
// Remove connection stats when server is deleted
Stores.connectionStats.clearServerStats(id);
// Remove SSH session when server is deleted
final sessionId = 'ssh_$id';
TermSessionManager.remove(sessionId);
@@ -246,7 +243,6 @@ class ServersNotifier extends _$ServersNotifier {
Stores.setting.serverOrder.put([]);
Stores.server.clear();
Stores.connectionStats.clearAll();
bakSync.sync(milliDelay: 1000);
}