Skip to content

Commit cd2842e

Browse files
authored
fix: CI rust version mismatch, create empty db (#173)
* fix: create db if does not exists * chore: update rust version * chore: bump version to 1.0.1
1 parent d63d17a commit cd2842e

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/ordhook-cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ordhook-cli"
3-
version = "0.4.0"
3+
version = "1.0.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

components/ordhook-cli/src/cli/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ async fn handle_command(opts: Opts, ctx: &Context) -> Result<(), String> {
609609

610610
let last_known_block =
611611
find_latest_inscription_block_height(&inscriptions_db_conn, &ctx)?;
612+
if last_known_block.is_none() {
613+
open_readwrite_ordhook_db_conn_rocks_db(&config.expected_cache_path(), &ctx)?;
614+
}
612615

613616
let ordhook_config = config.get_ordhook_config();
614617

@@ -664,6 +667,7 @@ async fn handle_command(opts: Opts, ctx: &Context) -> Result<(), String> {
664667
Command::Db(OrdhookDbCommand::New(cmd)) => {
665668
let config = ConfigFile::default(false, false, false, &cmd.config_path)?;
666669
initialize_ordhook_db(&config.expected_cache_path(), &ctx);
670+
open_readwrite_ordhook_db_conn_rocks_db(&config.expected_cache_path(), &ctx)?;
667671
}
668672
Command::Db(OrdhookDbCommand::Sync(cmd)) => {
669673
let config = ConfigFile::default(false, false, false, &cmd.config_path)?;

dockerfiles/components/ordhook.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /src
44

55
RUN apt update && apt install -y ca-certificates pkg-config libssl-dev libclang-11-dev
66

7-
RUN rustup update 1.67.0 && rustup default 1.67.0
7+
RUN rustup update 1.72.0 && rustup default 1.72.0
88

99
COPY ./components/ordhook-cli /src/components/ordhook-cli
1010

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.67.0"
2+
channel = "1.72.0"

0 commit comments

Comments
 (0)