MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / startTweetsSyncLoop

Function startTweetsSyncLoop

src/lib/tweetsSync.ts:257–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255let syncTimer: ReturnType<typeof setInterval> | null = null;
256
257export function startTweetsSyncLoop() {
258 if (syncTimer) return;
259 runTweetsSync().catch((err) => console.error("[tweetsSync] initial sync error:", err));
260 syncTimer = setInterval(() => {
261 runTweetsSync().catch((err) => console.error("[tweetsSync] sync error:", err));
262 }, TWEETS_SYNC_INTERVAL);
263}
264
265export function stopTweetsSyncLoop() {
266 if (syncTimer) {

Callers 1

registerFunction · 0.85

Calls 1

runTweetsSyncFunction · 0.85

Tested by

no test coverage detected