Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add application config as lazy-initialized global #192

Open
zupzup opened this issue Oct 29, 2024 · 0 comments
Open

Add application config as lazy-initialized global #192

zupzup opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement Enhancement of existing code good first contribution Good for newcomers help wanted Extra attention is needed

Comments

@zupzup
Copy link
Collaborator

zupzup commented Oct 29, 2024

Instead of passing the Config struct around and cloning it, instead lazily initialize it using e.g. lazy-static, or once_cell as described here:

#189 (comment)

Implement in a way, so different config values are still testable.

@zupzup zupzup converted this from a draft issue Oct 29, 2024
@zupzup zupzup added enhancement Enhancement of existing code help wanted Extra attention is needed good first contribution Good for newcomers labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing code good first contribution Good for newcomers help wanted Extra attention is needed
Projects
Status: Backlog
Development

No branches or pull requests

1 participant