Refactor config::get_config() #8

Open
opened 2024-02-17 14:43:17 +00:00 by matthew · 0 comments
Owner

We don't want to query all the config environment variables every time a piece of code needs one config value.

My first thought was to memoize get_config() but if we instead load the config on startup then get_conifig() doesn't need to be fallible.

We don't want to query all the config environment variables every time a piece of code needs one config value. My first thought was to memoize `get_config()` but if we instead load the config on startup then `get_conifig()` doesn't need to be fallible.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: matthew/locality#8
No description provided.