Skip to content

Commit

Permalink
Fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Jan 7, 2022
1 parent 154cb5f commit 13c64be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bee-node/src/entrynode/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use bee_runtime::{
use async_trait::async_trait;
use futures::StreamExt;
use fxhash::FxBuildHasher;
use tokio::signal::unix::SignalKind;
use tokio_stream::wrappers::UnboundedReceiverStream;

use std::{
Expand Down Expand Up @@ -196,7 +195,10 @@ fn add_node_resources(builder: EntryNodeBuilder) -> Result<EntryNodeBuilder, Ent
.with_resource(Bus::<TypeId>::default());

#[cfg(unix)]
let shutdown_rx = shutdown::shutdown_listener(vec![SignalKind::interrupt(), SignalKind::terminate()]);
let shutdown_rx = shutdown::shutdown_listener(vec![
tokio::signal::unix::SignalKind::interrupt(),
tokio::signal::unix::SignalKind::terminate(),
]);

#[cfg(not(unix))]
let shutdown_rx = shutdown::shutdown_listener();
Expand Down
4 changes: 3 additions & 1 deletion bee-node/src/fullnode/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ use std::any::{type_name, Any, TypeId};
/// Full node related errors.
#[derive(Debug, thiserror::Error)]
pub enum FullNodeError {
#[error("invalid or no identity private key provided. Add the newly generated `identity = \"{0}\"` (or generate one with `bee p2p-identity`) to the configuration file and re-run the node.")]
#[error(
"invalid or no identity private key provided. Add the newly generated `identity = \"{0}\"` (or generate one with `bee p2p-identity`) to the configuration file and re-run the node."
)]
InvalidOrNoIdentityPrivateKey(String),
#[error("{0}")]
GossipLayerInitialization(#[from] bee_gossip::Error),
Expand Down

0 comments on commit 13c64be

Please sign in to comment.