mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 16:24:37 +03:00
update to latest bstore (with support for an index on a []string: Message.DKIMDomains), and cyclic data types (to be used for Message.Part soon); also adds a context.Context to database operations.
This commit is contained in:
12
vendor/github.com/mjl-/bstore/equal.go
generated
vendored
12
vendor/github.com/mjl-/bstore/equal.go
generated
vendored
@ -63,7 +63,15 @@ func (ft fieldType) equal(ov, v reflect.Value) (r bool) {
|
||||
return false
|
||||
}
|
||||
for i := 0; i < n; i++ {
|
||||
if !ft.List.equal(ov.Index(i), v.Index(i)) {
|
||||
if !ft.ListElem.equal(ov.Index(i), v.Index(i)) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
case kindArray:
|
||||
n := ft.ArrayLength
|
||||
for i := 0; i < n; i++ {
|
||||
if !ft.ListElem.equal(ov.Index(i), v.Index(i)) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
@ -78,7 +86,7 @@ func (ft fieldType) equal(ov, v reflect.Value) (r bool) {
|
||||
}
|
||||
return bytes.Equal(obuf, buf)
|
||||
case kindStruct:
|
||||
for _, f := range ft.Fields {
|
||||
for _, f := range ft.structFields {
|
||||
fov := ov.FieldByIndex(f.structField.Index)
|
||||
fv := v.FieldByIndex(f.structField.Index)
|
||||
if !f.Type.equal(fov, fv) {
|
||||
|
Reference in New Issue
Block a user