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:
@@ -828,7 +828,7 @@ func (a *Agent) takeWant(u Update) string {
|
||||
if _, ok := meshwants.ParseWantsByWantNodeNodeKey(u.Key); ok {
|
||||
w := wantNow{Node: true, Rev: u.Revision}
|
||||
if !u.Deleted {
|
||||
nw, err := meshwants.DecodeWantsByWantNodeNodeValue(u.Value)
|
||||
nw, _, err := meshwants.DecodeWantsByWantNodeNodeValue(u.Value)
|
||||
if err != nil {
|
||||
a.sayOnce("want:node", fmt.Sprintf("the node's own want is not one: %v", err))
|
||||
return ""
|
||||
@@ -844,7 +844,7 @@ func (a *Agent) takeWant(u Update) string {
|
||||
}
|
||||
w := wantNow{Rev: u.Revision}
|
||||
if !u.Deleted {
|
||||
want, err := meshwants.DecodeWantsByWantNodeModuleValue(u.Value)
|
||||
want, _, err := meshwants.DecodeWantsByWantNodeModuleValue(u.Value)
|
||||
if err != nil {
|
||||
a.sayOnce("want:"+module, fmt.Sprintf("the want of %s is not one: %v", module, err))
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user