Indexer: a seed asked again writes the registrations its key composed, with no build seat asked again
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user