Skip to content

Commit

Permalink
proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Alw3ys committed Dec 18, 2023
1 parent 8205144 commit 516da7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ pub mod node_info {
}

impl ProtoChannel for node_info::NodeInfo {
// PING
const PROTO_ID: u8 = 0x00;
// 0x02 reserved for PONG
}

pub mod cron_job {
include!(concat!(env!("OUT_DIR"), "/dosei.cron_job.rs"));
}

impl ProtoChannel for cron_job::CronJob {
const PROTO_ID: u8 = 0x01;
const PROTO_ID: u8 = 0x02;
}

0 comments on commit 516da7a

Please sign in to comment.