From e165fcc50f0c831feb75411ea2bac1642051bc1d Mon Sep 17 00:00:00 2001 From: Sam Ritchie Date: Thu, 16 May 2013 16:08:48 -0700 Subject: [PATCH] bug fix --- .../com/twitter/storehaus/algebra/MutableCacheAlgebra.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storehaus-algebra/src/main/scala/com/twitter/storehaus/algebra/MutableCacheAlgebra.scala b/storehaus-algebra/src/main/scala/com/twitter/storehaus/algebra/MutableCacheAlgebra.scala index 2eb5b6f2..26819b35 100644 --- a/storehaus-algebra/src/main/scala/com/twitter/storehaus/algebra/MutableCacheAlgebra.scala +++ b/storehaus-algebra/src/main/scala/com/twitter/storehaus/algebra/MutableCacheAlgebra.scala @@ -57,6 +57,6 @@ class AlgebraicMutableCache[K, V](cache: MutableCache[K, V]) { override def empty = new AlgebraicMutableCache(cache.empty).inject(injection) override def clear = { cache.clear; this } - override def iterator = cache.iterator.map(injection) + override def iterator = cache.iterator.flatMap(injection.invert(_)) } }