Skip to content

Commit 8b7bed2

Browse files
authored
update dependency to be compatible with aptos-core (#515)
1 parent d6c66fd commit 8b7bed2

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

rust/Cargo.lock

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ homepage = "https://aptoslabs.com"
1717
license = "Apache-2.0"
1818
publish = false
1919
repository = "https://github.com/aptos-labs/aptos-indexer-processors"
20-
rust-version = "1.75"
20+
rust-version = "1.78"
2121

2222
[workspace.dependencies]
2323
processor = { path = "processor" }
@@ -28,8 +28,8 @@ sdk-processor = { path = "sdk-processor" }
2828

2929
ahash = { version = "0.8.7", features = ["serde"] }
3030
anyhow = "1.0.86"
31-
aptos-indexer-processor-sdk = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "e1e1bdd9349f0a68c9fc53b7e2cebda9e2ce92b7" }
32-
aptos-indexer-processor-sdk-server-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "e1e1bdd9349f0a68c9fc53b7e2cebda9e2ce92b7" }
31+
aptos-indexer-processor-sdk = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "3970abde03f9eca299e668562d71ccda8ed42ebf" }
32+
aptos-indexer-processor-sdk-server-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processor-sdk.git", rev = "3970abde03f9eca299e668562d71ccda8ed42ebf" }
3333
aptos-protos = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "5c48aee129b5a141be2792ffa3d9bd0a1a61c9cb" }
3434
aptos-system-utils = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "202bdccff2b2d333a385ae86a4fcf23e89da9f62" }
3535
aptos-indexer-test-transactions = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "202bdccff2b2d333a385ae86a4fcf23e89da9f62" }
@@ -83,10 +83,11 @@ kanal = { version = "0.1.0-pre8", features = ["async"] }
8383
once_cell = "1.10.0"
8484
num_cpus = "1.16.0"
8585
pbjson = "0.5.1"
86-
prometheus = { version = "0.13.0", default-features = false }
86+
prometheus = { version = "0.13.3", default-features = false }
8787
prost = { version = "0.12.3", features = ["no-recursion-limit"] }
8888
prost-types = "0.12.3"
89-
rayon = "1.10.0"
89+
# Keep it compatible with the aptos-core version.
90+
rayon = "1.5.2"
9091
regex = "1.5.5"
9192
reqwest = { version = "0.11.20", features = [
9293
"blocking",

rust/sdk-processor/src/steps/common/latest_processed_version_tracker.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ where
8585
Some(" WHERE processor_status.last_success_version <= EXCLUDED.last_success_version "),
8686
).await.map_err(|e| ProcessorError::DBStoreError {
8787
message: format!("Failed to update processor status: {}", e),
88+
// TODO: fix it with a debug_query.
89+
query: None,
8890
})?;
8991
}
9092
Ok(())

rust/sdk-processor/src/steps/events_processor/events_storer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ impl Processable for EventsStorer {
9494
"Failed to store events versions {} to {}: {:?}",
9595
events.start_version, events.end_version, e,
9696
),
97+
// TODO: fix it with a debug_query.
98+
query: None,
9799
}),
98100
}
99101
}

0 commit comments

Comments
 (0)