Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3711)

Unified Diff: service/datastore/datastore.go

Issue 1816413002: Make ExistsMulti return a BoolList (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | service/datastore/datastore_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/datastore.go
diff --git a/service/datastore/datastore.go b/service/datastore/datastore.go
index 0389ab8914415b197f88abc87911eb05541587b9..306df526153e401e75e64126194539ade80c206c 100644
--- a/service/datastore/datastore.go
+++ b/service/datastore/datastore.go
@@ -245,9 +245,9 @@ func isOkType(t reflect.Type) error {
return nil
}
-func (d *datastoreImpl) ExistsMulti(keys []*Key) ([]bool, error) {
+func (d *datastoreImpl) ExistsMulti(keys []*Key) (BoolList, error) {
lme := errors.NewLazyMultiError(len(keys))
- ret := make([]bool, len(keys))
+ ret := make(BoolList, len(keys))
i := 0
err := d.RawInterface.GetMulti(keys, nil, func(_ PropertyMap, err error) error {
if err == nil {
« no previous file with comments | « no previous file | service/datastore/datastore_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698