mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
Merge branch 'master' of github.com:darkrenaissance/darkfi
This commit is contained in:
@@ -214,7 +214,7 @@ async fn start(config: &DrkConfig, options: ArgMatches<'_>) -> Result<()> {
|
||||
Err(Error::MissingParams)
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
#[async_std::main]
|
||||
async fn main() -> Result<()> {
|
||||
let args = clap_app!(drk =>
|
||||
(@arg CONFIG: -c --config +takes_value "Sets a custom config file")
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
use std::str;
|
||||
|
||||
use async_std::{
|
||||
io::{ReadExt, WriteExt},
|
||||
net::TcpStream,
|
||||
};
|
||||
use rand::Rng;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{json, Value};
|
||||
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
||||
use tokio::net::TcpStream;
|
||||
|
||||
use crate::Error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user