Skip to content

Commit

Permalink
refactor: review #1~informalsystems#4
Browse files Browse the repository at this point in the history
  • Loading branch information
SangyunOck committed Nov 17, 2022
1 parent e17a63f commit 1a913fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/relayer/src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub enum Object {
Packet(Packet),
/// See [`Wallet`]
Wallet(Wallet),
CrossChainQueryPacket(CrossChainQueryPacket),
CrossChainQuery(CrossChainQueryPacket),
}

define_error! {
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer/src/worker/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,6 @@ fn metric_type(o: &Object) -> ibc_telemetry::state::WorkerType {
Object::Channel(_) => WorkerType::Channel,
Object::Packet(_) => WorkerType::Packet,
Object::Wallet(_) => WorkerType::Wallet,
Object::CrossChainQueryPacket(_) => WorkerType::CrossChainQueryPacket,
Object::CrossChainQuery(_) => WorkerType::CrossChainQuery,
}
}
4 changes: 2 additions & 2 deletions crates/telemetry/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub enum WorkerType {
Channel,
Packet,
Wallet,
CrossChainQueryPacket,
CrossChainQuery,
}

impl Display for WorkerType {
Expand All @@ -72,7 +72,7 @@ impl Display for WorkerType {
Self::Channel => write!(f, "channel"),
Self::Packet => write!(f, "packet"),
Self::Wallet => write!(f, "wallet"),
Self::CrossChainQueryPacket => write!(f, "cross_chain_query_packet"),
Self::CrossChainQuery => write!(f, "cross-chain-query"),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/test-framework/src/relayer/chain.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Definition for a proxy [`ChainHandle`] implementation for tagged
Definition for a proxy [`ChainHandle`] implementation for tagged
chain handles.
Since we use the chain handle type to distinguish the chain tags, we will
Expand Down

0 comments on commit 1a913fa

Please sign in to comment.