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

Unified Diff: chrome/common/extensions/docs/server2/appengine_wrappers.py

Issue 658733004: Docserver: Make ObjectStore set calls return Futures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix, cleanup Created 6 years, 2 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 | chrome/common/extensions/docs/server2/cache_chain_object_store.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/appengine_wrappers.py
diff --git a/chrome/common/extensions/docs/server2/appengine_wrappers.py b/chrome/common/extensions/docs/server2/appengine_wrappers.py
index 4c5543938dba027ced7659225c45013081a9419d..18542bdc2b004baf2e88c6bc517d92c404eeb3d8 100644
--- a/chrome/common/extensions/docs/server2/appengine_wrappers.py
+++ b/chrome/common/extensions/docs/server2/appengine_wrappers.py
@@ -166,8 +166,9 @@ except ImportError:
class Client(object):
def set_multi_async(self, mapping, namespace='', time=0):
- for k, v in mapping.iteritems():
- memcache.set(k, v, namespace=namespace, time=time)
+ return _RPC(result=dict(
+ (k, memcache.set(k, v, namespace=namespace, time=time))
+ for k, v in mapping.iteritems()))
def get_multi_async(self, keys, namespace='', time=0):
return _RPC(result=dict(
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/cache_chain_object_store.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698