Skip to content

Commit

Permalink
Addressing Anca's comments from prior PR
Browse files Browse the repository at this point in the history
  • Loading branch information
adizere committed Oct 16, 2020
1 parent f3528f6 commit 4e55262
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/src/ics02_client/handler/create_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mod tests {
&client_id,
height,
Some(ClientType::Mock),
Some(height.increment()),
Some(height),
);
let height = Height::new(0, 30);

Expand Down
8 changes: 4 additions & 4 deletions modules/src/mock_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use std::str::FromStr;
#[derive(Clone, Debug)]
pub struct MockContext {
/// Chain identifier in the form <chain>-<version>.
pub chain_id: ChainId,
chain_id: ChainId,

/// Maximum size of the history.
max_history_size: usize,
Expand All @@ -37,14 +37,14 @@ pub struct MockContext {
/// A list of `max_history_size` headers, ascending order by their height (latest is last).
history: Vec<MockHeader>,

// All the connections in the store.
connections: HashMap<ConnectionId, ConnectionEnd>,

/// The set of all clients, indexed by their id.
clients: HashMap<ClientId, MockClientRecord>,

// Association between client ids and connection ids.
client_connections: HashMap<ClientId, ConnectionId>,

// All the connections in the store.
connections: HashMap<ConnectionId, ConnectionEnd>,
}

/// Returns a MockContext with bare minimum initialization: no clients, no connections are
Expand Down

0 comments on commit 4e55262

Please sign in to comment.