doc: ensure_mirror_repo docstring — 409 only, not 409/422 (match the fix)
This commit is contained in:
parent
64e51fe3bf
commit
af7ec98542
1 changed files with 2 additions and 2 deletions
|
|
@ -959,8 +959,8 @@ async fn ensure_mirrors(admin_token: &str) {
|
||||||
|
|
||||||
/// Create `owner/repo` as a pull-mirror of `upstream` via the migrate API.
|
/// Create `owner/repo` as a pull-mirror of `upstream` via the migrate API.
|
||||||
/// Idempotent: a cheap existence check skips an already-seeded mirror (it
|
/// Idempotent: a cheap existence check skips an already-seeded mirror (it
|
||||||
/// persists in the non-ephemeral forge state across reboots), and a
|
/// persists in the non-ephemeral forge state across reboots); a 409 (a race
|
||||||
/// 409/422 from migrate is also treated as success.
|
/// between that check and the POST) is also treated as success.
|
||||||
async fn ensure_mirror_repo(
|
async fn ensure_mirror_repo(
|
||||||
upstream: &str,
|
upstream: &str,
|
||||||
owner: &str,
|
owner: &str,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue