mesh-bootstrap: drop an unread parameter
A parameter nothing reads is a claim the function makes about what it needs, and this one was wrong. Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF
This commit is contained in:
@@ -33,7 +33,7 @@ type Runner = apply.Runner
|
|||||||
// clearing the launcher's start counter. Those are facts about a running `mesh-host`, and this is
|
// clearing the launcher's start counter. Those are facts about a running `mesh-host`, and this is
|
||||||
// not one.
|
// not one.
|
||||||
func ApplyBundle(ctx context.Context, o Options, sys system.System, d *declaration.Declaration,
|
func ApplyBundle(ctx context.Context, o Options, sys system.System, d *declaration.Declaration,
|
||||||
source string, run Runner, say func(string)) (apply.Report, error) {
|
run Runner, say func(string)) (apply.Report, error) {
|
||||||
|
|
||||||
// Refuse a shape this host cannot apply before anything is applied, exactly as `mesh-host`
|
// Refuse a shape this host cannot apply before anything is applied, exactly as `mesh-host`
|
||||||
// does: finding out half way through is the half-configured machine tier 0 exists to prevent.
|
// does: finding out half way through is the half-configured machine tier 0 exists to prevent.
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ func Run(ctx context.Context, o Options, d Deps, say func(string)) (Result, erro
|
|||||||
|
|
||||||
// ---- 4. apply -----------------------------------------------------------------------
|
// ---- 4. apply -----------------------------------------------------------------------
|
||||||
say("apply — raising the substrate")
|
say("apply — raising the substrate")
|
||||||
report, err := ApplyBundle(ctx, o, sys, rewritten.Declaration, o.Out, d.Run, say)
|
report, err := ApplyBundle(ctx, o, sys, rewritten.Declaration, d.Run, say)
|
||||||
result.Applied, result.Changed = len(report.Outcomes), report.Changed()
|
result.Applied, result.Changed = len(report.Outcomes), report.Changed()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return result, failed(StepApply, err)
|
return result, failed(StepApply, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user