mirror of
https://github.com/Cuprate/cuprate.git
synced 2024-12-26 21:50:09 +00:00
Boog900
1a178381dd
* split the DB service abstraction * fix ci * misc changes * Apply suggestions from code review Co-authored-by: hinto-janai <hinto.janai@protonmail.com> * review fixes * Update storage/service/Cargo.toml Co-authored-by: hinto-janai <hinto.janai@protonmail.com> * Update storage/service/Cargo.toml Co-authored-by: hinto-janai <hinto.janai@protonmail.com> * fix clippy * fix doc * `bc` -> `blockchain` * doc fixes * Update storage/service/README.md Co-authored-by: hinto-janai <hinto.janai@protonmail.com> * cargo fmt --------- Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
7 lines
440 B
Markdown
7 lines
440 B
Markdown
# Cuprate's `tower::Service` database abstraction.
|
|
|
|
This crate contains the building blocks for creating a [`tower::Service`] interface to [`cuprate_blockchain`](https://doc.cuprate.org/cuprate_blockchain).
|
|
|
|
It is split into 2 `tower::Service`s:
|
|
1. A [read service](crate::DatabaseReadService) which is backed by a [`rayon::ThreadPool`]
|
|
1. A [write service](crate::DatabaseWriteHandle) which spawns a single thread to handle write requests
|