document lock order
This commit is contained in:
parent
48df2e12fa
commit
58ca93c123
@ -170,6 +170,10 @@ pub struct Params {
|
|||||||
/// This is simply designed for request-response purposes. Higher level uses
|
/// This is simply designed for request-response purposes. Higher level uses
|
||||||
/// of the protocol, such as synchronization, will function as wrappers around
|
/// of the protocol, such as synchronization, will function as wrappers around
|
||||||
/// this system.
|
/// this system.
|
||||||
|
//
|
||||||
|
// LOCK ORDER:
|
||||||
|
// Locks must be acquired in the order declared, and when holding a read lock
|
||||||
|
// on the peers, only one peer may be held at a time.
|
||||||
pub struct LightProtocol {
|
pub struct LightProtocol {
|
||||||
provider: Box<Provider>,
|
provider: Box<Provider>,
|
||||||
genesis_hash: H256,
|
genesis_hash: H256,
|
||||||
|
Loading…
Reference in New Issue
Block a user