Expand description
§Cuprate’s tower::Service
database abstraction.
This crate contains the building blocks for creating a tower::Service
interface to cuprate_blockchain
.
It is split into 2 tower::Service
s:
- A read service which is backed by a
rayon::ThreadPool
- A write service which spawns a single thread to handle write requests
Structs§
- The
rayon::ThreadPool
service. - Write handle to the database.
Enums§
- Amount of database reader threads to spawn.
Functions§
- Initialize the reader thread-pool backed by
rayon
.