Commit 6b2045d
committed
horus: Fix key used to lock concurrent accesses to the function cache
[Why]
Using the given `fun()` directly seems ineffective. I think this is
because the function can take variables from the environment; for
example:
Var = value,
fun() ->
do_something(Var)
end.
[How]
Let's use the same helper that is used to build the function cache key.
This is logical as this lock protects this cache as part of its intent.1 parent 8d80373 commit 6b2045d
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
| 420 | + | |
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
| |||
0 commit comments