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

Avoid reading configuration file multiple times #2139

Closed
wants to merge 1 commit into from

Conversation

vedanshbhartia
Copy link
Contributor

The load_config_files function of GangaCore Config init would read system config variables in a loop, and set session variables in each loop cycle. This would cause the config file to be read multiple times. This commit moves the reading of user config and setting of session variables outside the loop.

The load_config_files function of GangaCore Config init would read
system config variables in a loop, and set session variables in each
loop cycle. This would cause the config file to be read multiple times.
This commit moves the reading of user config and setting of session
variables outside the loop.

Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
@egede egede changed the title Fixes #2129 Avoid reading configuration file multiple times (Fixes #2129) Mar 24, 2023
@egede egede changed the title Avoid reading configuration file multiple times (Fixes #2129) Avoid reading configuration file multiple times Mar 24, 2023
@egede
Copy link
Member

egede commented Mar 24, 2023

@vedanshbhartia Thanks for fixig this problem. I have created a clone that will be merged (to work around the CI from forks problem). This PR will be closed.

@egede egede closed this Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants