Skip to content

Commit

Permalink
clean format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Sep 21, 2024
1 parent 16c3f75 commit 1243a0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion bindings/ceylon/src/workspace/admin_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ impl AdminAgent {

let name = self.config.name.clone();
let port = self.config.port;
let address = peer_.get_address();

if peer_.id == self._peer_id {
info!("Admin peer created {}", peer_.id.clone());
Expand Down
5 changes: 2 additions & 3 deletions bindings/ceylon/src/workspace/worker_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use tokio::task::JoinHandle;
use tokio::{select, signal};
use tokio_util::sync::CancellationToken;
use tracing::{error, info};
use uniffi::deps::log::__private_api::log;
use crate::workspace::agent::{AgentDetail, ENV_WORKSPACE_ID, ENV_WORKSPACE_IP, ENV_WORKSPACE_PEER, ENV_WORKSPACE_PORT};
use crate::workspace::message::AgentMessage;
use crate::{EventHandler, MessageHandler, Processor};
Expand Down Expand Up @@ -88,8 +87,8 @@ impl WorkerAgent {

let mut config = config.clone();
info!("Config: {}", config.to_str());
if (config.conf_file.is_some()) {
let conf_file = format!("{}", config.clone().conf_file.unwrap().clone());
if config.conf_file.is_some() {
let conf_file = config.clone().conf_file.unwrap().clone().to_string();
info!("Checking .ceylon_network config {}", fs::metadata(conf_file.clone()).is_ok());
// check .ceylon_network exists
if fs::metadata(conf_file.clone()).is_ok() {
Expand Down

0 comments on commit 1243a0c

Please sign in to comment.