docs(plan): 去掉 export 的重复文档行 + Task 8 误引改为 Task 7

计划共 7 个任务,Task 3 里引用「Task 8 e2e」是笔误。
裸 JSON 修正时残留了一行重复的 doc comment。

Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
adminandClaude Code committed 2026-10-12 12:31:21 +08:00
1 parent c0a3b2bd97
commit 00e15f9d5f
1 file changed
+2 -3
@@ -935,7 +935,7 @@ Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>"
- `("POST", "/api/admin/sync/pull")` → `Guard::Admin`
- `("POST", "/api/admin/reload")` → `Guard::Admin`
**⚠️ 本任务无法单元测试**:handler 依赖 `*mut ngx_http_request_t`。靠 `cargo check` + Task 8 e2e 验证。
**⚠️ 本任务无法单元测试**:handler 依赖 `*mut ngx_http_request_t`。靠 `cargo check` + Task 7 e2e 验证。
鉴权逻辑(token 比对)刻意做成可单测的纯函数 `sync::token_matches`,见 Step 1。
- [ ] **Step 1: 加 token 比对与 authority 投影**
@@ -1068,8 +1068,7 @@ fn h_sync_push(r: *mut ngx_http_request_t, _actor: Actor) -> Status {
)
}
/// GET /api/admin/sync/export —— 导出本侧权威字段(供对端 pull)。
/// GET /api/admin/sync/export —— 导出本侧权威字段全量快照。
/// GET /api/admin/sync/export —— 导出本侧权威字段全量快照(供对端 pull)。
///
/// ⚠️ **必须发裸 `SyncPayload`,不能用 `http::ok`**。`http::ok` 会包成
/// `{code,data,msg}` 信封,而对端 `sync::pull_from_peer` 是