Federation progress

This commit is contained in:
Zef Hemel
2023-07-29 23:41:37 +02:00
parent 272bd90ee6
commit fe4887dc78
11 changed files with 112 additions and 49 deletions
+8 -8
View File
@@ -22,10 +22,10 @@ export class FallbackSpacePrimitives implements SpacePrimitives {
try {
return await this.primary.readFile(name);
} catch (e) {
console.info(
`Could not read file ${name} from primary, trying fallback, primary read error:`,
e.message,
);
// console.info(
// `Could not read file ${name} from primary, trying fallback, primary read error:`,
// e.message,
// );
try {
const result = await this.fallback.readFile(name);
return {
@@ -43,10 +43,10 @@ export class FallbackSpacePrimitives implements SpacePrimitives {
try {
return await this.primary.getFileMeta(name);
} catch (e) {
console.info(
`Could not fetch file ${name} metadata from primary, trying fallback, primary read error`,
e.message,
);
// console.info(
// `Could not fetch file ${name} metadata from primary, trying fallback, primary read error`,
// e.message,
// );
try {
const meta = await this.fallback.getFileMeta(name);
return { ...meta, neverSync: true };