made toml format prettier

This commit is contained in:
lunar-mining
2021-07-13 13:15:51 +02:00
parent edd977f9b8
commit 97bb01f236
2 changed files with 9 additions and 15 deletions

View File

@@ -44,39 +44,33 @@ use serde::{Deserialize, Serialize};
//impl ClientCliConfig<'_> for DrkCliConfig {}
//impl ClientCliConfig<'_> for DarkfidCliConfig {}
//#[derive(Serialize, Default, Deserialize, Debug)]
//pub struct Configs {
// pub drk: DrkCliConfig,
// pub darkfid: DarkfidCliConfig,
//}
#[derive(Serialize, Default, Deserialize, Debug)]
pub struct DrkConfig {
#[serde(rename = "RPC URL")]
#[serde(rename = "rpc_url")]
pub rpc_url: String,
#[serde(rename = "Log path")]
#[serde(rename = "log_path")]
pub log_path: String,
}
#[derive(Serialize, Default, Deserialize, Debug)]
pub struct DarkfidConfig {
#[serde(rename = "Connect URL")]
#[serde(rename = "connect_url")]
pub connect_url: String,
#[serde(rename = "Subscriber URL")]
#[serde(rename = "subscriber_url")]
pub subscriber_url: String,
#[serde(rename = "RPC URL")]
#[serde(rename = "rpc_url")]
pub rpc_url: String,
#[serde(rename = "Database path")]
#[serde(rename = "database_path")]
pub database_path: String,
#[serde(rename = "Log path")]
#[serde(rename = "log_path")]
pub log_path: String,
#[serde(rename = "Password")]
#[serde(rename = "password")]
pub password: String,
}

View File

@@ -8,7 +8,7 @@ use async_std::sync::{Arc, Mutex};
use ff::Field;
use log::*;
use rand::rngs::OsRng;
use rusqlite::{named_params, params, OptionalExtension, DatabaseName, Connection};
use rusqlite::{named_params, params, Connection};
use std::path::PathBuf;