Skip to content

Commit

Permalink
Address comments from @TheCharlatan
Browse files Browse the repository at this point in the history
  • Loading branch information
h4sh3d committed Nov 29, 2021
1 parent c134876 commit 9e3a5fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/bin/syncerd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ extern crate log;
use clap::Clap;

use farcaster_node::syncerd::{self, Opts};
use farcaster_node::{Error, ServiceConfig};
use farcaster_node::ServiceConfig;

fn main() -> Result<(), Error> {
fn main() {
let mut opts = Opts::parse();
trace!("Command-line arguments: {:?}", &opts);
opts.process();
Expand Down
10 changes: 5 additions & 5 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use crate::opts::Opts;
#[serde(crate = "serde_crate")]
pub struct Config {
/// Syncer configuration
pub syncers: Option<Syncers>,
pub syncers: Option<SyncersConfig>,
}

impl Config {
Expand All @@ -50,14 +50,14 @@ impl Config {
impl Default for Config {
fn default() -> Self {
Config {
syncers: Some(Syncers::default()),
syncers: Some(SyncersConfig::default()),
}
}
}

#[derive(Deserialize, Serialize, Debug, Clone)]
#[serde(crate = "serde_crate")]
pub struct Syncers {
pub struct SyncersConfig {
/// Mainnet syncer configuration
pub mainnet: Option<SyncerServers>,

Expand All @@ -78,9 +78,9 @@ pub struct SyncerServers {
pub monero_rpc_wallet: String,
}

impl Default for Syncers {
impl Default for SyncersConfig {
fn default() -> Self {
Syncers {
SyncersConfig {
mainnet: Some(SyncerServers {
electrum_server: FARCASTER_MAINNET_ELECTRUM_SERVER.into(),
monero_daemon: FARCASTER_MAINNET_MONERO_DAEMON.into(),
Expand Down

0 comments on commit 9e3a5fe

Please sign in to comment.