MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / loadSyncConfig

Method loadSyncConfig

src/main/core/sync/syncEngine.ts:73–81  ·  view source on GitHub ↗

* 加载同步配置

()

Source from the content-addressed store, hash-verified

71 * 加载同步配置
72 */
73 private async loadSyncConfig(): Promise<SyncConfig | null> {
74 try {
75 const doc = await this.db.promises.get('SYNC/config')
76 return doc?.data || null
77 } catch (error) {
78 console.error('[Sync] 加载配置失败:', error)
79 return null
80 }
81 }
82
83 /**
84 * 保存同步配置

Callers 5

initMethod · 0.95
performSyncMethod · 0.95
getLastSyncTimeMethod · 0.95
updateLastSyncTimeMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected