aboutsummaryrefslogtreecommitdiff
path: root/aoc-2020-gleam/src/util/cache.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'aoc-2020-gleam/src/util/cache.gleam')
-rw-r--r--aoc-2020-gleam/src/util/cache.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/aoc-2020-gleam/src/util/cache.gleam b/aoc-2020-gleam/src/util/cache.gleam
index c007d35..f84f1e6 100644
--- a/aoc-2020-gleam/src/util/cache.gleam
+++ b/aoc-2020-gleam/src/util/cache.gleam
@@ -44,7 +44,7 @@ pub fn set(in cache: Cache(k, v), for key: k, insert value: v) -> Nil {
}
pub fn get(from cache: Cache(k, v), fetch key: k) -> Result(v, Nil) {
- process.call(cache.server, fn(c) { Get(key, c) }, timeout)
+ process.call(cache.server, Get(key, _), timeout)
}
pub fn memoize(with cache: Cache(k, v), this key: k, apply fun: fn() -> v) -> v {