E1: read another part's values tolerantly
The generated decoders keep unknown fields and return the form read, so a want the assigner writes with run, or any field added later, is applied rather than refused: the node-engine that reads run runs before the assigner writes it. Builds: design 47 H2 §780; §813 (1) (the edge)
This commit is contained in:
@@ -332,7 +332,7 @@ func (s *Shadow) takeCandidate(u agent.Update) bool {
|
||||
}
|
||||
return true
|
||||
}
|
||||
c, err := meshmoduleassigner.DecodeCandidatesByProposalNodeValue(u.Value)
|
||||
c, _, err := meshmoduleassigner.DecodeCandidatesByProposalNodeValue(u.Value)
|
||||
if err != nil || c.Proposal != proposal || (c.Assignments != nil && c.Assignments.Node != node) {
|
||||
// Not one: read as gone.
|
||||
if _, ok := s.candidates[proposal][node]; ok {
|
||||
|
||||
Reference in New Issue
Block a user