Skip to content

Drozdziak1/p2w client use mapping crawl #294

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

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

drozdziak1
Copy link
Contributor

This change adds and tests the merging of crawled mapping symbols with the existing attestation config. The additional symbols that were not previously seen in other symbol groups are added to a symbol group called "mapping", This mapping group can contain pre-existing symbols and, more importantly, attestation conditions, allowing to specify the default behavior for symbols found in the mapping

Stan Drozd added 2 commits September 21, 2022 13:35
This change adds code to append new symbols to an existing attestation
config. In conjunction with the mapping crawling logic, this will aid
in hot reloading attestation configs in runtime
Copy link
Collaborator

@ali-behjati ali-behjati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ship it 🚢

@@ -173,12 +173,13 @@ async fn main() -> Result<(), ErrBox> {
daemon,
} => {
// Load the attestation config yaml
let attestation_cfg: AttestationConfig =
let mut attestation_cfg: AttestationConfig =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this one is not necessary here 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not possible to take a mutable reference to an immutable variable

@drozdziak1 drozdziak1 merged commit fdafbe3 into main Sep 21, 2022
@drozdziak1 drozdziak1 deleted the drozdziak1/p2w-client-use-mapping-crawl branch September 21, 2022 14:49
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.

2 participants