Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
suurkivi committed Nov 6, 2024
1 parent 45fa74a commit 760b25c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// Custom type attributes required for malachite
builder = builder.type_attribute("snapchain.ShardHash", "#[derive(Eq, PartialOrd, Ord)]");

// TODO: auto-discover proto files
builder.compile(&[
"src/proto/blocks.proto",
"src/proto/rpc.proto",
Expand Down
9 changes: 4 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pub mod core;
pub mod network;
pub mod connectors;
mod cfg;
mod server;

use std::error::Error;
use std::io;
Expand All @@ -16,7 +15,7 @@ use malachite_metrics::{Metrics, SharedRegistry};
use prost::Message;
use std::time::Duration;
use tokio::signal::ctrl_c;
use tokio::sync::{mpsc};
use tokio::sync::mpsc;
use tokio::{select, time};
use tokio::time::sleep;
use tonic::transport::Server;
Expand All @@ -27,10 +26,10 @@ use connectors::fname::Fetcher;

use crate::consensus::consensus::{Consensus, ConsensusMsg, ConsensusParams};
use crate::core::types::{proto, Address, Height, ShardId, SnapchainContext, SnapchainShard, SnapchainValidator, SnapchainValidatorContext, SnapchainValidatorSet};
use crate::network::gossip::{GossipEvent};
use crate::network::gossip::GossipEvent;
use network::gossip::SnapchainGossip;
use crate::server::{MySnapchainService};
use crate::server::rpc::snapchain_service_server::SnapchainServiceServer;
use network::server::MySnapchainService;
use network::server::rpc::snapchain_service_server::SnapchainServiceServer;

pub enum SystemMessage {
Consensus(ConsensusMsg<SnapchainValidatorContext>),
Expand Down
1 change: 1 addition & 0 deletions src/network/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pub mod gossip;
pub mod server;
File renamed without changes.

0 comments on commit 760b25c

Please sign in to comment.