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

Rewrite Stake Processor with SDK #576

Merged
merged 4 commits into from
Oct 30, 2024
Merged

Rewrite Stake Processor with SDK #576

merged 4 commits into from
Oct 30, 2024

Conversation

dermanyang
Copy link
Contributor

Purpose

  • Refactor existing stake processor to locate all parsing logic in parse_stake_data.
  • Rewrite stake processor using the sdk
  • add new, non-default ProcessorConfig called StakeProcessorConfig that contains additional fields to the default one. Namely, query_retries, query_retry_delay_ms.

Testing

image

@dermanyang dermanyang marked this pull request as ready for review October 29, 2024 20:18
@dermanyang dermanyang requested a review from a team October 29, 2024 20:18
Comment on lines +78 to +82
let per_table_chunk_sizes: AHashMap<String, usize> = self
.processor_config
.default_config
.per_table_chunk_sizes
.clone();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now that I think about it, I think we should move this part to the processor so we avoid the clone every time process is called?

@dermanyang dermanyang merged commit 5e5fb41 into main Oct 30, 2024
7 checks passed
@dermanyang dermanyang deleted the sdy/stake branch October 30, 2024 17:50
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