map: renamed listen() to run_rpc()

This commit is contained in:
lunar-mining
2022-02-05 10:48:06 +01:00
parent 30b9f6ff75
commit c51187dead

View File

@@ -133,7 +133,7 @@ async fn main() -> Result<()> {
// Run the main future on the current thread.
.finish(|| {
smol::future::block_on(async move {
listen(ex2.clone(), app.clone()).await?;
run_rpc(ex2.clone(), app.clone()).await?;
run_app(&mut terminal, app.clone()).await?;
drop(signal);
Ok::<(), darkfi::Error>(())
@@ -143,7 +143,7 @@ async fn main() -> Result<()> {
result
}
async fn listen(ex: Arc<Executor<'_>>, app: App) -> Result<()> {
async fn run_rpc(ex: Arc<Executor<'_>>, app: App) -> Result<()> {
let client = Map::new("tcp://127.0.0.1:8000".to_string());
ex.spawn(poll(client, app)).detach();