You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For every subscribe call it is calling application:gen_all_env..., though I suspect subscribe call is not that frequent.
Would moving get_all_env to init phase and store in state be better?
How about getting the config settings before starting the worker. If getting settings error-ed out(I assume that is essential info for worker to work), supervisor then does not need to start worker then restart etc.
File: elixometer/lib/elixometer.ex
defhandle_call({:subscribe,name},_caller,state)docfg=Application.get_all_env(:elixometer)<-----reporter=cfg[:reporter]# <--- looks like this is relatively constantinterval=cfg[:update_frequency]# <-- looks like this is relatively constant
The text was updated successfully, but these errors were encountered:
For every subscribe call it is calling application:gen_all_env..., though I suspect subscribe call is not that frequent.
Would moving get_all_env to init phase and store in state be better?
How about getting the config settings before starting the worker. If getting settings error-ed out(I assume that is essential info for worker to work), supervisor then does not need to start worker then restart etc.
File: elixometer/lib/elixometer.ex
The text was updated successfully, but these errors were encountered: