Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: stable
toolchain: 1.77.1

- uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
with:
components: clippy, rustfmt
override: true
toolchain: stable
toolchain: 1.77.1

- uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: 1.77.1

- uses: Swatinem/rust-cache@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
with:
override: true
target: ${{ matrix.target }}
toolchain: stable
toolchain: 1.77.1

- name: Install Linux Dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion src/index/updater/inscription_updater/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ impl StreamEvent {

fn is_text_related(media: Media, content_type: Option<String>) -> bool {
if content_type
.map(|ct| ct.starts_with("text/") || ct.starts_with("image/svg"))
.map(|ct| ct.starts_with("text/"))
.unwrap_or(false)
{
return true;
Expand Down
17 changes: 0 additions & 17 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,6 @@ impl Display for InscriptionQuery {
}
}

enum BlockQuery {
Height(u32),
Hash(BlockHash),
}

impl FromStr for BlockQuery {
type Err = Error;

fn from_str(s: &str) -> Result<Self, Self::Err> {
Ok(if s.len() == 64 {
BlockQuery::Hash(s.parse()?)
} else {
BlockQuery::Height(s.parse()?)
})
}
}

enum SpawnConfig {
Https(AxumAcceptor),
Http,
Expand Down