Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
document lock order
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Nov 18, 2016
1 parent 48df2e1 commit 58ca93c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ethcore/src/light/net/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 58ca93c

Please sign in to comment.