fix: improve token management

This commit is contained in:
tdurieux
2024-06-18 12:00:45 +02:00
parent 9271332d5b
commit 532c094388
9 changed files with 90 additions and 32 deletions
+6 -2
View File
@@ -518,7 +518,11 @@ export default class Repository {
await storage.rm(this.repoId);
this.model.isReseted = true;
if (isConnected) {
await this.model.save();
try {
await this.model.save();
} catch (error) {
console.error("[ERROR] removeCache save", error);
}
}
} finally {
span.end();
@@ -542,7 +546,7 @@ export default class Repository {
}> {
const span = trace
.getTracer("ano-file")
.startSpan("Repository.removeCache");
.startSpan("Repository.computeSize");
span.setAttribute("repoId", this.repoId);
try {
if (this.status !== RepositoryStatus.READY)