Don't assume @cachedList function returns keys for everything

pull/4/merge
Erik Johnston 9 years ago
parent 85d0bc3bdc
commit 8e254862f4
  1. 2
      synapse/util/caches/descriptors.py

@ -293,7 +293,7 @@ class CacheListDescriptor(object):
# we can insert the new deferred into the cache.
for arg in missing:
observer = ret_d.observe()
observer.addCallback(lambda r, arg: r[arg], arg)
observer.addCallback(lambda r, arg: r.get(arg, None), arg)
observer = ObservableDeferred(observer)

Loading…
Cancel
Save