document lock order

This commit is contained in:
Robert Habermeier 2016-11-18 19:27:32 +01:00
parent 48df2e12fa
commit 58ca93c123

View File

@ -170,6 +170,10 @@ pub struct Params {
/// This is simply designed for request-response purposes. Higher level uses
/// of the protocol, such as synchronization, will function as wrappers around
/// 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 {
provider: Box<Provider>,
genesis_hash: H256,