This commit is contained in:
Zef Hemel
2023-02-28 11:13:18 +01:00
parent 520b5e91d6
commit ece4177e11
5 changed files with 57 additions and 6 deletions
+5 -3
View File
@@ -3,7 +3,6 @@ import type { SyncEndpoint } from "../../plug-api/silverbullet-syscall/sync.ts";
import { SpaceSync, SyncStatusItem } from "../spaces/sync.ts";
import { HttpSpacePrimitives } from "../spaces/http_space_primitives.ts";
import { SpacePrimitives } from "../spaces/space_primitives.ts";
import { race, timeout } from "../async_util.ts";
export function syncSyscalls(
localSpace: SpacePrimitives,
@@ -122,8 +121,11 @@ export function syncSyscalls(
localSpace,
remoteSpace,
syncStatusMap,
// Log to the "sync" plug sandbox
system.loadedPlugs.get("sync")!.sandbox!,
{
excludePrefixes: endpoint.excludePrefixes,
// Log to the "sync" plug sandbox
logger: system.loadedPlugs.get("sync")!.sandbox!,
},
);
return { spaceSync, remoteSpace };
}