Skip to content

Commit

Permalink
refactor: implement rav traits for horizon
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Inacio <[email protected]>
  • Loading branch information
gusinacio committed Feb 10, 2025
1 parent d08b3e3 commit 7dbb32f
Show file tree
Hide file tree
Showing 7 changed files with 390 additions and 25 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/tap-agent/src/tap/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub trait NetworkVersion: Send + Sync + 'static {
///
/// A simple `struct Legacy;` would be able to instantiate and pass as
/// value, while having size 1.
#[derive(Debug)]
pub enum Legacy {}
/// 0-sized marker for horizon network
///
Expand All @@ -79,6 +80,7 @@ pub enum Legacy {}
///
/// A simple `struct Legacy;` would be able to instantiate and pass as
/// value, while having size 1.
#[derive(Debug)]
pub enum Horizon {}

impl NetworkVersion for Legacy {
Expand Down
Loading

0 comments on commit 7dbb32f

Please sign in to comment.