aboutsummaryrefslogtreecommitdiff
path: root/aoc-2020-gleam/src/util/cache.gleam
diff options
context:
space:
mode:
authorTomasz Chojnacki <tomaszchojnacki2001@gmail.com>2023-12-27 21:59:07 +0100
committerTomasz Chojnacki <tomaszchojnacki2001@gmail.com>2023-12-27 21:59:07 +0100
commit7d282716854d7995d3c3d50ef5b3c99c3d9f64b4 (patch)
treedc5d76c5ed3231afddfdf71b320a1d65dc9cac88 /aoc-2020-gleam/src/util/cache.gleam
parenta25524092b986c22309354b89ad839ece62ad011 (diff)
downloadgleam_aoc2020-main.tar.gz
gleam_aoc2020-main.zip
Fix problems found during blog post creationHEADmain
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 {