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.
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 theget_global_config()function. Should also add a way to create a global state with a specified config for mocking in unit tests.