archethic-foundation / archethic-node

Official Archethic Blockchain node, written in Elixir
GNU Affero General Public License v3.0
74 stars 22 forks source link

Use MFA in Archethic's cache for hooks #1104

Open samuelmanzanera opened 1 year ago

samuelmanzanera commented 1 year ago

To avoid this, we should expose MFA instead of a private function in the cache to be called, avoiding the need to kill the process just to make a hot reload.

_Originally posted by @samuelmanzanera in https://github.com/archethic-foundation/archethic-node/pull/1101#discussion_r1231870659_

bchamagne commented 10 months ago

Now that we know the lambda will be "old" only if we upgrade the LRU Module, should we close this ticket? Since LRU will probably rarely be upgraded.

cc @samuelmanzanera @Neylix

Neylix commented 10 months ago

Now that we know the lambda will be "old" only if we upgrade the LRU Module, should we close this ticket? Since LRU will probably rarely be upgraded.

cc @samuelmanzanera @Neylix

I think we still need to do this Issue as in any case it will be a cleaner solution than having the lambda function