fix: potential flaky issues (#2733)

This commit is contained in:
Peng Xiao
2023-06-09 00:20:12 +08:00
committed by GitHub
parent ec99a0ce05
commit 935b4f847c
4 changed files with 38 additions and 15 deletions
@@ -85,10 +85,6 @@ function getWorkspaceDB$(id: string) {
try {
await db.destroy();
db$Map.delete(id);
logger.info(
'[ensureSQLiteDB] db connection destroyed',
db.workspaceId
);
return db;
} catch (err) {
logger.error('[ensureSQLiteDB] destroy db failed', err);