Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Conversation

@ppoliani
Copy link
Contributor

Fixes comments in this PR #30


impl Compliance {
const BTC_ID: &'static str = "344";
const TICK_INTERVAL: u64 = 600;
Copy link
Contributor

Choose a reason for hiding this comment

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

so every 10min, maybe we can relax this even more... mmm... I think it'd be a good idea to log it when we detect an update on the sanction list, so that we can have an idea of the frequency and revise this number later

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The good thing is that there is pre-fetch stage which will fetch a few bytes initially. Those few bytes are enough to see if there is a fresh version of the dataset. Basically, the XML includes a tag that has the publish date of the document. So if the there is no fresh data then we don't fetch and parse the large XML file. This takes a few milliseconds to run.

@mimoo mimoo merged commit 2680ea3 into CharmsDev:main Feb 14, 2024
@mimoo
Copy link
Contributor

mimoo commented Feb 14, 2024

nice!

@ppoliani ppoliani deleted the chore/pr_fixes branch February 18, 2024 09:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants