Fix deletion of open file on initial sync

This commit is contained in:
Zef Hemel
2023-07-28 18:06:49 +02:00
parent a758446ecd
commit fb67cba6ac
4 changed files with 40 additions and 17 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ export class FallbackSpacePrimitives implements SpacePrimitives {
return await this.primary.readFile(name);
} catch (e) {
console.info(
`Could not read file ${name} from primary, trying fallback`,
`Could not read file ${name} from primary, trying fallback, primary read error:`,
e.message,
);
try {
@@ -40,7 +40,7 @@ export class FallbackSpacePrimitives implements SpacePrimitives {
return await this.primary.getFileMeta(name);
} catch (e) {
console.info(
`Could not fetch file ${name} metadata from primary, trying fallback`,
`Could not fetch file ${name} metadata from primary, trying fallback, primary read error`,
e.message,
);
try {