Skip to content

Commit

Permalink
Fix compilation issue with --no-default-features (#2782)
Browse files Browse the repository at this point in the history
  • Loading branch information
romac authored Oct 28, 2022
1 parent b7cbc35 commit e6ed2a1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions crates/relayer/src/supervisor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use crate::{
monitor::{self, Error as EventError, ErrorDetail as EventErrorDetail, EventBatch},
IbcEventWithHeight,
},
object::{Object, Packet},
object::Object,
registry::{Registry, SharedRegistry},
rest,
supervisor::scan::ScanMode,
Expand Down Expand Up @@ -738,9 +738,13 @@ fn process_batch<Chain: ChainHandle>(
/// So successfully sending a packet from chain A to chain B will result in first a SendPacket
/// event with `chain_id = A` and `counterparty_chain_id = B` and then a WriteAcknowlegment
/// event with `chain_id = B` and `counterparty_chain_id = A`.
///
fn send_telemetry<Src, Dst>(src: &Src, dst: &Dst, events: &[IbcEventWithHeight], path: &Packet)
where
#[cfg(feature = "telemetry")]
fn send_telemetry<Src, Dst>(
src: &Src,
dst: &Dst,
events: &[IbcEventWithHeight],
path: &crate::object::Packet,
) where
Src: ChainHandle,
Dst: ChainHandle,
{
Expand Down

0 comments on commit e6ed2a1

Please sign in to comment.