engine: Allow more send/recv cases

This allows the other part of this. This still needs to be improved, but
it unblocks some use-cases.
This commit is contained in:
James Shubin
2023-11-12 17:50:07 -05:00
parent b048b2684b
commit 3a3bc568b3
2 changed files with 15 additions and 4 deletions

View File

@@ -197,6 +197,11 @@ func StructFieldCompat(st1 interface{}, key1 string, st2 interface{}, key2 strin
// TODO: Can we do more checks instead of only returning early?
return nil
}
// If we're sending _to_ an interface...
//if kind2 == reflect.Interface {
// // TODO: Can we do more checks instead of only returning early?
// return nil
//}
if kind1 != kind2 {
return fmt.Errorf("field kind mismatch between %s and %s", kind1, kind2)