engine: resources: Receive keys should match mcl, not golang
The capitalization of these keys was wrong and they weren't getting seen. Add a test as well.
This commit is contained in:
@@ -126,9 +126,9 @@ func (obj *ValueRes) CheckApply(ctx context.Context, apply bool) (bool, error) {
|
||||
received := false
|
||||
different := false
|
||||
checkOK := false
|
||||
if val, exists := obj.init.Recv()["Any"]; exists && val.Changed {
|
||||
if val, exists := obj.init.Recv()["any"]; exists && val.Changed {
|
||||
// if we received on Any, and it changed, invalidate the cache!
|
||||
obj.init.Logf("CheckApply: received on `Any`")
|
||||
obj.init.Logf("CheckApply: received on `any`")
|
||||
obj.isSet = true // we received something
|
||||
obj.cachedAny = obj.Any
|
||||
received = true // we'll always need to send below when we recv
|
||||
|
||||
Reference in New Issue
Block a user