debugging for DeepEqual
This commit is contained in:
parent
c1845d038c
commit
41b33a2041
7
main.go
7
main.go
@ -56,11 +56,12 @@ func main() {
|
|||||||
elem := reflect.ValueOf(node).Elem()
|
elem := reflect.ValueOf(node).Elem()
|
||||||
field := elem.FieldByName(strings.Title(coll.CollectType))
|
field := elem.FieldByName(strings.Title(coll.CollectType))
|
||||||
|
|
||||||
log.Println(field)
|
|
||||||
log.Println(result)
|
|
||||||
|
|
||||||
if !reflect.DeepEqual(field, result) {
|
if !reflect.DeepEqual(field, result) {
|
||||||
|
log.Printf("Start sendAll after recieve %s", coll.CollectType)
|
||||||
|
log.Printf("Field: %V", field)
|
||||||
|
log.Printf("Result: %V", result)
|
||||||
wsserverForNodes.SendAll(node)
|
wsserverForNodes.SendAll(node)
|
||||||
|
log.Print("End")
|
||||||
}
|
}
|
||||||
|
|
||||||
field.Set(reflect.ValueOf(result))
|
field.Set(reflect.ValueOf(result))
|
||||||
|
Loading…
Reference in New Issue
Block a user