Nothing the control queue carries is lost while the store restarts: an enrolment claims its token and spends it last, and is asked to try again; build results, upgrades and catch-ups are handed back, bounded (novox/hq issue 083)
This commit is contained in:
@@ -109,6 +109,11 @@ type EnrolReply struct {
|
||||
// Accepted says whether the node is now known.
|
||||
Accepted bool `json:"accepted"`
|
||||
|
||||
// TryAgain says the mesh cannot answer right now — its store is restarting, or the token is
|
||||
// held for a moment by another enrolment — and the node should ask again with the same
|
||||
// request. Nothing was spent (novox/hq issue 083).
|
||||
TryAgain bool `json:"try_again,omitempty"`
|
||||
|
||||
// Node is the name the mesh has for this machine, which settles any disagreement: the token
|
||||
// was issued for a node record, and that record's name wins over what the machine called
|
||||
// itself.
|
||||
|
||||
Reference in New Issue
Block a user