Skip to content

Move the global config to the global state #10

@ReCore-sys

Description

@ReCore-sys

Currently we just have a get_global_config() function to fetch the config. This works fine during execution, but has some issues with testing, since it makes it very hard to test with different config values. To fix this we should probably put the global config in the global state instead (inside an Arc tho so we can clone it and pass it to functions that don't use the state) and remove the get_global_config() function. Should also add a way to create a global state with a specified config for mocking in unit tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersrefactorSomething isn't right in terms of orgnisation

    Type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions