-
Notifications
You must be signed in to change notification settings - Fork 79
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
Migrate Default Processor to the SDK #567
Conversation
> { | ||
let flags = self.deprecated_table_flags; | ||
let (block_metadata_transactions, table_items, current_table_items, table_metadata) = | ||
tokio::task::spawn_blocking(move || process_transactions(transactions.data, flags)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spawn_blocking may be unnecessary. SDK runs AsyncStep inside of its own thread :) https://github.com/aptos-labs/aptos-indexer-processors-sdk/blob/faf0469441fc27fd62bff4eed0dfab89e0bd5ddd/aptos-indexer-processors-sdk/sdk/src/traits/async_step.rs#L88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh nice good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment but LGTM!
Purpose
Testing