Builder: remove Republisher.Ended, which nothing calls since the publish item asks at a build's end (A-457a, A-473)

Builds: design 47 G A-457a, A-473
This commit is contained in:
2026-11-17 21:26:46 +01:00
parent 378853a97d
commit ae91c7e73a
@@ -299,18 +299,6 @@ func (r *Republisher) Republish(ctx context.Context, module, version string) ([]
return r.queue(ctx, vs, r.holdersFn, 0)
}
// Ended queues a reserved version whose build has just ended (built-at set, every artifact's digest known) at the holder of
// each artifact's registry seat, as a holder's running does, and drains it (design 47 G A-473). A version with no built-at, or
// whose artifacts are all published, queues nothing. A holder that refuses or does not answer leaves the version in
// version-unreleased with its words (send says it); a seat with no holder leaves it for the holder's running.
func (r *Republisher) Ended(ctx context.Context, module, version string) ([]string, error) {
v, ok, err := r.Reserved.Of(ctx, module, version)
if err != nil || !ok || v.BuiltAt.IsZero() || len(v.Missing()) == 0 {
return nil, err
}
return r.queue(ctx, []ReservedVersion{v}, r.holdersFn, 0)
}
// Queued are the queued versions, per holder in the order they are sent, and the acted keys with their sequences:
// builder_publish_queue.
type Queued struct {