Skip to content

Commit 281002b

Browse files
committed
Make workspace expire sooner
1 parent 0cfe177 commit 281002b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Core/Sources/Service/ScheduledCleaner.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public final class ScheduledCleaner {
4343
}
4444
}
4545
}
46-
dump(workspaceInfos)
4746
for (url, workspace) in workspaces {
4847
if workspace.isExpired, workspaceInfos[.url(url)] == nil {
4948
Logger.service.info("Remove idle workspace")

Core/Sources/Service/Workspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ final class Workspace {
104104
let openedFileRecoverableStorage: OpenedFileRecoverableStorage
105105
var lastSuggestionUpdateTime = Environment.now()
106106
var isExpired: Bool {
107-
Environment.now().timeIntervalSince(lastSuggestionUpdateTime) > 60 * 60 * 4
107+
Environment.now().timeIntervalSince(lastSuggestionUpdateTime) > 60 * 60 * 1
108108
}
109109

110110
private(set) var filespaces = [URL: Filespace]()

0 commit comments

Comments
 (0)