diff options
author | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2023-12-27 21:59:07 +0100 |
---|---|---|
committer | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2023-12-27 21:59:07 +0100 |
commit | 7d282716854d7995d3c3d50ef5b3c99c3d9f64b4 (patch) | |
tree | dc5d76c5ed3231afddfdf71b320a1d65dc9cac88 /aoc-2020-gleam/src/util | |
parent | a25524092b986c22309354b89ad839ece62ad011 (diff) | |
download | gleam_aoc2020-7d282716854d7995d3c3d50ef5b3c99c3d9f64b4.tar.gz gleam_aoc2020-7d282716854d7995d3c3d50ef5b3c99c3d9f64b4.zip |
Diffstat (limited to 'aoc-2020-gleam/src/util')
-rw-r--r-- | aoc-2020-gleam/src/util/cache.gleam | 2 |
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 { |