MCPcopy Create free account
hub / github.com/Hanson/claude-client / loadProcessedIds

Method loadProcessedIds

src/feishu/handler.ts:53–66  ·  view source on GitHub ↗

* 从文件加载已处理的消息 ID

()

Source from the content-addressed store, hash-verified

51 * 从文件加载已处理的消息 ID
52 */
53 private loadProcessedIds(): void {
54 try {
55 if (fs.existsSync(this.processedIdsPath)) {
56 const data = fs.readFileSync(this.processedIdsPath, 'utf-8');
57 const ids = JSON.parse(data) as string[];
58 for (const id of ids) {
59 this.processedMessageIds.add(id);
60 }
61 logger.info(`Loaded ${this.processedMessageIds.size} processed message IDs from cache`);
62 }
63 } catch (error) {
64 logger.warn('Failed to load processed message IDs', { error });
65 }
66 }
67
68 /**
69 * 保存已处理的消息 ID 到文件

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected