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

Don't parse YAML config twice & drop superfluous code #106

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

yhabteab
Copy link
Member

Currently the YAML config is loaded twice, first into a database.Config from our Icinga Go library and into the custom database.Config, which is not necessary. This PR drops the custom database.Config and the database.Options and uses the Icinga Go library instead, as they don't have any differences, so the YAML does not need to be loaded twice.

@yhabteab yhabteab requested a review from lippserd July 24, 2024 10:24
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Jul 24, 2024
@yhabteab yhabteab force-pushed the drop-superfluous-code branch from 8cef88a to a5e4c75 Compare July 24, 2024 10:25
@yhabteab
Copy link
Member Author

I have no idea why Go / modtidy GitHub action is failing or what I'm supposed to do to fix this!

@lippserd lippserd force-pushed the drop-superfluous-code branch from a5e4c75 to c7e3f47 Compare July 24, 2024 11:03
@lippserd
Copy link
Member

I have no idea why Go / modtidy GitHub action is failing or what I'm supposed to do to fix this!

A simple go mod tidy run was missing ;).

@lippserd lippserd merged commit 64bf676 into main Jul 24, 2024
6 of 7 checks passed
@lippserd lippserd deleted the drop-superfluous-code branch July 24, 2024 11:04
@lippserd lippserd added this to the 0.2.0 milestone Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants