style: gofmt normalization — no logic changes
gofmt -w across the controller tree (46 files) so gofmt -l is empty — disarms the
formatting landmine where a targeted edit + accidental gofmt -w swept ~46 unrelated
files. Pure formatting: whitespace + gofmt's optional-semicolon removal in reflowed
inline closures. One doc comment reworded ('' -> 'the empty string') to avoid gofmt's
Go-1.19 doc-comment typographic substitition ('' -> curly quote) muddying its meaning.
No build/vet/test behavior change.
This commit is contained in:
@@ -29,9 +29,9 @@ type storageInitJob struct {
|
||||
Where string `json:"where,omitempty"` // the registered stable path (done only)
|
||||
Phase string `json:"phase"` // formatting | mounting | registering | done | failed | needs_confirmation | refused
|
||||
Error string `json:"error,omitempty"`
|
||||
Reason string `json:"reason,omitempty"` // refusal/confirm reason (Hungarian, from the agent)
|
||||
DurableID string `json:"durable_id,omitempty"` // needs_confirmation: the durable id to confirm against
|
||||
Opsign string `json:"opsign,omitempty"` // refused: the operator opsign command
|
||||
Reason string `json:"reason,omitempty"` // refusal/confirm reason (Hungarian, from the agent)
|
||||
DurableID string `json:"durable_id,omitempty"` // needs_confirmation: the durable id to confirm against
|
||||
Opsign string `json:"opsign,omitempty"` // refused: the operator opsign command
|
||||
StartedAt time.Time `json:"started_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
@@ -54,7 +54,7 @@ const storageInitDeadline = 65 * time.Minute
|
||||
// storageInitParams carries the validated init request into the detached job.
|
||||
type storageInitParams struct {
|
||||
device, fstype, where, label, durableID string
|
||||
setDefault, confirmed bool
|
||||
setDefault, confirmed bool
|
||||
}
|
||||
|
||||
// storageInitState is the single-flight slot (netAddState shape: acquire/release/set/snapshot,
|
||||
|
||||
Reference in New Issue
Block a user