Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

fix: --embedded-database does not work when using fuel-indexer binary directly #892

Merged
merged 27 commits into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6c37b92
start postgres when embedded_database is specified
lostman May 9, 2023
9aa0c26
let fuel-indexer handle --embedded-database
lostman May 10, 2023
62d97bc
handle sighup/term/int and postgress shutdown
lostman May 10, 2023
52f67c8
updates
lostman May 10, 2023
373a4f3
update
lostman May 10, 2023
50bb931
update
lostman May 10, 2023
bcc3a83
update Cargo.lock
lostman May 10, 2023
25a6200
do not mess with returning PgEmbed
lostman May 10, 2023
dbfec6d
CreateDbCommand does not need to be boxed
lostman May 10, 2023
af47f01
fmt
lostman May 10, 2023
168dae6
clippy
lostman May 11, 2023
63a8420
move signal handling code
lostman May 11, 2023
5b75765
use CancellationToken for graceful shutdown
lostman May 11, 2023
61da496
trigger gh actions
lostman May 12, 2023
01b5d75
flatten code handling features
lostman May 12, 2023
d92be13
remove some comments and log messages
lostman May 15, 2023
e5ac831
formatting
lostman May 15, 2023
af46102
remove unnecessary panic!
lostman May 16, 2023
425488d
keep FuelService handle alive
lostman May 16, 2023
b0300a4
update Cargo.lock
lostman May 17, 2023
f3abd25
update Cargo.lock
lostman May 17, 2023
3460754
Merge branch 'master' into maciej/813-fuel-indexer-embedded-database
lostman May 17, 2023
d69d347
add vendored openssl
lostman May 26, 2023
970a0bd
Merge remote-tracking branch 'origin/master' into maciej/813-fuel-ind…
lostman May 26, 2023
8fdd1b2
remove duplicate entry
lostman May 26, 2023
c903f55
clean up the use of defaults
lostman Jun 5, 2023
a89eb75
Merge remote-tracking branch 'origin/master' into maciej/813-fuel-ind…
lostman Jun 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 70 additions & 12 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"examples/hello-world/hello-indexer",
"examples/hello-world/hello-world-data",
"examples/hello-world/hello-world-node",
"packages/fuel-indexer",
"packages/fuel-indexer-api-server",
"packages/fuel-indexer-database",
"packages/fuel-indexer-database/database-types",
Expand All @@ -24,8 +25,6 @@ members = [
"packages/fuel-indexer-tests/components/indices/simple-wasm/simple-wasm",
"packages/fuel-indexer-tests/components/web-api",
"packages/fuel-indexer-types",
"packages/fuel-indexer",
"plugins/forc-index-tests",
"plugins/forc-index",
"plugins/forc-index-tests",
"plugins/forc-postgres",
Expand Down Expand Up @@ -86,4 +85,5 @@ serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = { version = "1.0", default-features = false }
thiserror = "1.0"
tokio = "1.17"
tokio-util = "0.7.8"
tracing = "0.1"
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ fuel-indexer-macros = { workspace = true, default-features = false }
fuel-indexer-plugin = { workspace = true }
fuel-indexer-schema = { workspace = true, default-features = false }
fuels = { workspace = true }
serde = { workspace = true }
serde = { workspace = true }
6 changes: 6 additions & 0 deletions packages/fuel-indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ async-trait = "0.1"
bincode = { workspace = true }
chrono = { version = "0.4", features = ["serde"] }
clap = { features = ["cargo", "derive", "env"], workspace = true }
forc-postgres = { workspace = true }
fuel-core = { version = "0.17", optional = true }
fuel-core-client = "0.17"
fuel-indexer-api-server = { workspace = true, optional = true }
Expand All @@ -31,11 +32,16 @@ futures = "0.3"
sqlx = { version = "0.6", features = ["bigdecimal"] }
thiserror = { workspace = true }
tokio = { features = ["macros", "rt-multi-thread", "sync", "process"], workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
wasmer = "2.3"
wasmer-compiler-cranelift = { version = "2.3" }
wasmer-engine-universal = "2.3"

[dependencies.openssl]
version = "0.10.52"
features = ["vendored"]

[dev-dependencies]
chrono = { version = "0.4", features = ["serde"] }
fuel-core-client = { version = "0.17.2", features = ["test-helpers"] }
Expand Down
Loading