hirosystems / ordhook

Build indexers, standards and protocols on top of Ordinals and Inscriptions (BRC20, etc).
Apache License 2.0
182 stars 54 forks source link

fix: only create brc-20 db connection and cache if required #357

Closed rafaelcr closed 1 week ago

rafaelcr commented 1 week ago

Consolidates the creation of BRC-20 DB and cache so it only happens when the Ordhook.toml config requires it.

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 2.17391% with 45 lines in your changes missing coverage. Please review. Files with missing lines Patch % Lines
components/ordhook-core/src/service/mod.rs 0.00% 16 Missing :warning:
...c/core/pipeline/processors/inscription_indexing.rs 0.00% 10 Missing :warning:
...s/ordhook-core/src/core/meta_protocols/brc20/db.rs 0.00% 9 Missing :warning:
...rdhook-core/src/core/meta_protocols/brc20/cache.rs 0.00% 4 Missing :warning:
components/ordhook-cli/src/cli/mod.rs 0.00% 3 Missing :warning:
components/ordhook-core/src/db/mod.rs 0.00% 2 Missing :warning:
components/ordhook-core/src/service/runloops.rs 0.00% 1 Missing :warning:

:loudspeaker: Thoughts on this report? Let us know!

rafaelcr commented 1 week ago

Related to #353