Indexer: a seed asked again writes the registrations its key composed, with no build seat asked again

This commit is contained in:
2026-11-14 16:55:09 +01:00
parent a6ab2e54cd
commit 86fb18afb7
@@ -924,7 +924,12 @@ func (r *Registry) Act(ctx context.Context, a TakeInAsk, seed func(context.Conte
answer = map[string]string{"answer": said}
case ActSeed:
var modules []SeedModule
if seed == nil {
if composed, _, found, lerr := r.load(ctx, SeedKey); lerr == nil && found && len(composed.Seed) > 0 {
// The registrations a seed key composed already are written as composed: no build seat is asked again.
var said string
said, err = r.ProposeSeed(ctx, nil, act.Again, a.By)
answer = map[string]string{"answer": said}
} else if seed == nil {
err = errors.New("the seed is not composed by this indexer")
} else if modules, err = seed(ctx); err == nil {
var ask string