Index: chrome/common/extensions/docs/server2/cache_chain_object_store.py |
diff --git a/chrome/common/extensions/docs/server2/cache_chain_object_store.py b/chrome/common/extensions/docs/server2/cache_chain_object_store.py |
index 6741d5f503c5b3acaf5912d044a1387ab7556f8e..62a91b5b05b64826b7071a4ca089cfdd9160a466 100644 |
--- a/chrome/common/extensions/docs/server2/cache_chain_object_store.py |
+++ b/chrome/common/extensions/docs/server2/cache_chain_object_store.py |
@@ -2,7 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-from future import Future |
+from future import All, Future |
from object_store import ObjectStore |
@@ -29,8 +29,8 @@ class CacheChainObjectStore(ObjectStore): |
def SetMulti(self, mapping): |
self._cache.update(mapping) |
- for object_store in self._object_stores: |
- object_store.SetMulti(mapping) |
+ return All(object_store.SetMulti(mapping) |
Ken Rockot(use gerrit already)
2014/10/23 20:16:18
Actually we don't want to force callers to Get the
not at google - send to devlin
2014/10/23 20:18:08
ah good point. You might want to add a comment for
|
+ for object_store in self._object_stores) |
def GetMulti(self, keys): |
missing_keys = list(keys) |