docs(plan): 删掉 h_sync_pull 里「ngx-rust 无 5xx 常量」的伪注释

该说法是错的:vendor/ngx-rust/src/http/status.rs 194-201 定义了 500/502/503。
最初 pre-flight 的一次 grep 漏看了宏尾部,导致错误结论写进了计划,
又由 Task 3 实施者原样誊进 api.rs 源码注释——现在源码和计划都已改正。

pull 用 500 的理由换成真实的那个:失败原因含载荷解析失败 / 本侧写盘失败,
502 会把这两类误述成网关转发失败。

Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
adminandClaude Code committed 2026-10-12 12:35:17 +08:00
1 parent 00e15f9d5f
commit a144c75d10
1 file changed
+2 -3
@@ -1109,9 +1109,8 @@ fn h_sync_pull(r: *mut ngx_http_request_t, _actor: Actor) -> Status {
"拉取合并完成",
)
}
// ⚠️ ngx-rust 的 HTTPStatus 宏**没有定义任何 5xx 常量**
// (vendor/ngx-rust/src/http/status.rs 里 4xx 之后直接跳到 nginx 自定义码),
// 故 502 Bad Gateway 用不了。pull 失败统一报 500。
// pull 失败统一报 500 而非 502:失败原因不止「对端转发失败」,还包含
// 载荷解析失败、本侧写盘失败等,502 会把后两者误述成网关问题。
Err(e) => http::fail(r, HTTPStatus::INTERNAL_SERVER_ERROR, &e),
}
}