Thanks @kokolegorille, @hauleth, @dimitarvp and @gregvaughn for taking the time to read it and contribute.
Application.put_env/3call inApplication.start/2should do.
Your suggestion is to store the resulting function in the application environment when it starts, right?
Isn’t it what I’m already doing, except that I’m using config in the runtime.exs?






















