feat: add fallback sync

This commit is contained in:
2024-01-25 16:02:16 +00:00
parent d7460651c8
commit 9a3207bfa3
6 changed files with 57 additions and 30 deletions

View File

@ -147,7 +147,7 @@ export class RequestBuilder {
const ts = unixNowMs() - start;
this.#log("buildDiff %s %d ms +%d", this.id, ts, diff.length);
if (diff.length > 0) {
// todo: fix
// todo: fix for explicit relays
return splitFlatByWriteRelays(system.relayCache, diff).map(a => {
return {
strategy: RequestStrategy.AuthorsRelays,