Skip to content

Commit

Permalink
[Processor] Use multiple threads to speed up FA processor. (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
grao1991 authored Aug 21, 2024
1 parent 1ae9dd5 commit 66fa26c
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 259 deletions.
1 change: 1 addition & 0 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions rust/processor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ num_cpus = { workspace = true }
once_cell = { workspace = true }
prometheus = { workspace = true }
prost = { workspace = true }
rayon = { workspace = true }
regex = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub struct FungibleAssetActivity {
}

impl FungibleAssetActivity {
pub async fn get_v2_from_event(
pub fn get_v2_from_event(
event: &Event,
txn_version: i64,
block_height: i64,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl From<&CurrentFungibleAssetBalance> for CurrentUnifiedFungibleAssetBalance {

impl FungibleAssetBalance {
/// Basically just need to index FA Store, but we'll need to look up FA metadata
pub async fn get_v2_from_write_resource(
pub fn get_v2_from_write_resource(
write_resource: &WriteResource,
write_set_change_index: i64,
txn_version: i64,
Expand Down
Loading

0 comments on commit 66fa26c

Please sign in to comment.