| Index: service/datastore/checkfilter.go
|
| diff --git a/service/datastore/checkfilter.go b/service/datastore/checkfilter.go
|
| index 4c28307997ebb910a32e076a6f3bd373a8a78924..2dd9ea3b520db3c7221907f96dccbfa41556e849 100644
|
| --- a/service/datastore/checkfilter.go
|
| +++ b/service/datastore/checkfilter.go
|
| @@ -43,7 +43,7 @@ func (tcf *checkFilter) GetMulti(keys []Key, meta MultiMetaGetter, cb GetMultiCB
|
| if cb == nil {
|
| return fmt.Errorf("datastore: GetMulti callback is nil")
|
| }
|
| - lme := errors.LazyMultiError{Size: len(keys)}
|
| + lme := errors.NewLazyMultiError(len(keys))
|
| for i, k := range keys {
|
| if KeyIncomplete(k) || !KeyValid(k, true, tcf.aid, tcf.ns) {
|
| lme.Assign(i, ErrInvalidKey)
|
| @@ -68,7 +68,7 @@ func (tcf *checkFilter) PutMulti(keys []Key, vals []PropertyMap, cb PutMultiCB)
|
| if cb == nil {
|
| return fmt.Errorf("datastore: PutMulti callback is nil")
|
| }
|
| - lme := errors.LazyMultiError{Size: len(keys)}
|
| + lme := errors.NewLazyMultiError(len(keys))
|
| for i, k := range keys {
|
| if KeyIncomplete(k) {
|
| // use NewKey to avoid going all the way down the stack for this check.
|
| @@ -100,7 +100,7 @@ func (tcf *checkFilter) DeleteMulti(keys []Key, cb DeleteMultiCB) error {
|
| if cb == nil {
|
| return fmt.Errorf("datastore: DeleteMulti callback is nil")
|
| }
|
| - lme := errors.LazyMultiError{Size: len(keys)}
|
| + lme := errors.NewLazyMultiError(len(keys))
|
| for i, k := range keys {
|
| if KeyIncomplete(k) || !KeyValid(k, false, tcf.aid, tcf.ns) {
|
| lme.Assign(i, ErrInvalidKey)
|
|
|