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::Services:
- A read service which is backed by a
rayon::ThreadPool - A write service which spawns a single thread to handle write requests
Structs§
- Database
Read Service - The
rayon::ThreadPoolservice. - Database
Write Handle - Write handle to the database.
Enums§
- Reader
Threads - Amount of database reader threads to spawn.
Functions§
- init_
thread_ pool - Initialize the reader thread-pool backed by
rayon.