diff --git a/Cargo.lock b/Cargo.lock index 0eefae271..57bc5a5fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2730,7 +2730,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "forc-index" -version = "0.19.2" +version = "0.19.3" dependencies = [ "actix-web", "anyhow", @@ -2761,7 +2761,7 @@ dependencies = [ [[package]] name = "forc-postgres" -version = "0.19.2" +version = "0.19.3" dependencies = [ "anyhow", "clap 3.2.25", @@ -3353,7 +3353,7 @@ dependencies = [ [[package]] name = "fuel-indexer" -version = "0.19.2" +version = "0.19.3" dependencies = [ "anyhow", "async-std", @@ -3386,7 +3386,7 @@ dependencies = [ [[package]] name = "fuel-indexer-api-server" -version = "0.19.2" +version = "0.19.3" dependencies = [ "anyhow", "async-graphql 5.0.10", @@ -3436,7 +3436,7 @@ dependencies = [ [[package]] name = "fuel-indexer-database" -version = "0.19.2" +version = "0.19.3" dependencies = [ "fuel-indexer-database-types", "fuel-indexer-lib", @@ -3448,7 +3448,7 @@ dependencies = [ [[package]] name = "fuel-indexer-database-types" -version = "0.19.2" +version = "0.19.3" dependencies = [ "async-graphql-parser 5.0.10", "async-graphql-value 5.0.10", @@ -3460,7 +3460,7 @@ dependencies = [ [[package]] name = "fuel-indexer-graphql" -version = "0.19.2" +version = "0.19.3" dependencies = [ "async-graphql 5.0.10", "async-graphql-parser 5.0.10", @@ -3478,7 +3478,7 @@ dependencies = [ [[package]] name = "fuel-indexer-lib" -version = "0.19.2" +version = "0.19.3" dependencies = [ "anyhow", "async-graphql-parser 5.0.10", @@ -3502,7 +3502,7 @@ dependencies = [ [[package]] name = "fuel-indexer-macro-utils" -version = "0.19.2" +version = "0.19.3" dependencies = [ "proc-macro-error", "proc-macro2", @@ -3512,7 +3512,7 @@ dependencies = [ [[package]] name = "fuel-indexer-macros" -version = "0.19.2" +version = "0.19.3" dependencies = [ "async-graphql-parser 5.0.10", "async-graphql-value 5.0.10", @@ -3539,7 +3539,7 @@ dependencies = [ [[package]] name = "fuel-indexer-metrics" -version = "0.19.2" +version = "0.19.3" dependencies = [ "axum 0.6.19", "lazy_static", @@ -3549,7 +3549,7 @@ dependencies = [ [[package]] name = "fuel-indexer-plugin" -version = "0.19.2" +version = "0.19.3" dependencies = [ "anyhow", "async-trait", @@ -3571,7 +3571,7 @@ dependencies = [ [[package]] name = "fuel-indexer-postgres" -version = "0.19.2" +version = "0.19.3" dependencies = [ "bigdecimal", "chrono", @@ -3586,7 +3586,7 @@ dependencies = [ [[package]] name = "fuel-indexer-schema" -version = "0.19.2" +version = "0.19.3" dependencies = [ "async-graphql-parser 5.0.10", "fuel-indexer-database", @@ -3653,7 +3653,7 @@ dependencies = [ [[package]] name = "fuel-indexer-types" -version = "0.19.2" +version = "0.19.3" dependencies = [ "bincode", "bytes 1.4.0", @@ -3668,7 +3668,7 @@ dependencies = [ [[package]] name = "fuel-indexer-utils" -version = "0.19.2" +version = "0.19.3" dependencies = [ "fuel-indexer-macros", "fuel-indexer-plugin", diff --git a/Cargo.toml b/Cargo.toml index 394439ab8..2d2255a8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,29 +61,29 @@ homepage = "https://fuel.network/" license = "Apache-2.0" repository = "https://github.com/FuelLabs/fuel-indexer" rust-version = "1.69.0" -version = "0.19.2" +version = "0.19.3" [workspace.dependencies] async-graphql-parser = "5.0" async-graphql-value = "5.0" bincode = "1.3" clap = "3.1" -forc-index = { version = "0.19.2", path = "./plugins/forc-index" } -forc-postgres = { version = "0.19.2", path = "./plugins/forc-postgres" } -fuel-indexer = { version = "0.19.2", path = "./packages/fuel-indexer" } -fuel-indexer-api-server = { version = "0.19.2", path = "./packages/fuel-indexer-api-server" } -fuel-indexer-database = { version = "0.19.2", path = "./packages/fuel-indexer-database" } -fuel-indexer-database-types = { version = "0.19.2", path = "./packages/fuel-indexer-database/database-types" } -fuel-indexer-graphql = { version = "0.19.2", path = "./packages/fuel-indexer-graphql" } -fuel-indexer-lib = { version = "0.19.2", path = "./packages/fuel-indexer-lib" } -fuel-indexer-macro-utils = { version = "0.19.2", path = "./packages/fuel-indexer-macros/macro-utils" } -fuel-indexer-macros = { version = "0.19.2", path = "./packages/fuel-indexer-macros", default-features = false } -fuel-indexer-metrics = { version = "0.19.2", path = "./packages/fuel-indexer-metrics" } -fuel-indexer-plugin = { version = "0.19.2", path = "./packages/fuel-indexer-plugin", default-features = false } -fuel-indexer-postgres = { version = "0.19.2", path = "./packages/fuel-indexer-database/postgres" } -fuel-indexer-schema = { version = "0.19.2", path = "./packages/fuel-indexer-schema", default-features = false } -fuel-indexer-types = { version = "0.19.2", path = "./packages/fuel-indexer-types" } -fuel-indexer-utils = { version = "0.19.2", path = "./packages/fuel-indexer-utils" } +forc-index = { version = "0.19.3", path = "./plugins/forc-index" } +forc-postgres = { version = "0.19.3", path = "./plugins/forc-postgres" } +fuel-indexer = { version = "0.19.3", path = "./packages/fuel-indexer" } +fuel-indexer-api-server = { version = "0.19.3", path = "./packages/fuel-indexer-api-server" } +fuel-indexer-database = { version = "0.19.3", path = "./packages/fuel-indexer-database" } +fuel-indexer-database-types = { version = "0.19.3", path = "./packages/fuel-indexer-database/database-types" } +fuel-indexer-graphql = { version = "0.19.3", path = "./packages/fuel-indexer-graphql" } +fuel-indexer-lib = { version = "0.19.3", path = "./packages/fuel-indexer-lib" } +fuel-indexer-macro-utils = { version = "0.19.3", path = "./packages/fuel-indexer-macros/macro-utils" } +fuel-indexer-macros = { version = "0.19.3", path = "./packages/fuel-indexer-macros", default-features = false } +fuel-indexer-metrics = { version = "0.19.3", path = "./packages/fuel-indexer-metrics" } +fuel-indexer-plugin = { version = "0.19.3", path = "./packages/fuel-indexer-plugin", default-features = false } +fuel-indexer-postgres = { version = "0.19.3", path = "./packages/fuel-indexer-database/postgres" } +fuel-indexer-schema = { version = "0.19.3", path = "./packages/fuel-indexer-schema", default-features = false } +fuel-indexer-types = { version = "0.19.3", path = "./packages/fuel-indexer-types" } +fuel-indexer-utils = { version = "0.19.3", path = "./packages/fuel-indexer-utils" } fuel-tx = { version = "0.26", default-features = false } fuel-types = { version = "0.31", default-features = false, features = ["serde"] } fuel-vm = { version = "0.26", default-features = false } diff --git a/packages/fuel-indexer/src/executor.rs b/packages/fuel-indexer/src/executor.rs index 70c9d0623..2eca2d4d7 100644 --- a/packages/fuel-indexer/src/executor.rs +++ b/packages/fuel-indexer/src/executor.rs @@ -167,8 +167,7 @@ pub fn run_executor( // Just bump the cursor and keep going warn!("Constraint violation. Continuing..."); - // Try to fetch the page again using same cursor. - continue; + next_cursor = cursor; } else { error!("Database error: {inner}."); sleep(Duration::from_secs(DELAY_FOR_SERVICE_ERROR)).await;