Skip to content

Commit

Permalink
Merge pull request #2923 from tediou5/chore/remove-unnecessary-code
Browse files Browse the repository at this point in the history
chore: remove unnecessary code
  • Loading branch information
nazar-pc authored Jul 16, 2024
2 parents 8a1e2ed + 298dc9f commit 8048752
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,9 @@ where
None
};

let node_client = CachingProxyNodeClient::new(
ClusterNodeClient::new(nats_client.clone())
.await
.map_err(|error| anyhow!("Failed to create cluster node client: {error}"))?,
)
.await
.map_err(|error| anyhow!("Failed to create caching proxy node client: {error}"))?;
let node_client = CachingProxyNodeClient::new(ClusterNodeClient::new(nats_client.clone()))
.await
.map_err(|error| anyhow!("Failed to create caching proxy node client: {error}"))?;

let farmer_app_info = node_client
.farmer_app_info()
Expand Down
6 changes: 3 additions & 3 deletions crates/subspace-farmer/src/cluster/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ pub struct ClusterNodeClient {

impl ClusterNodeClient {
/// Create a new instance
pub async fn new(nats_client: NatsClient) -> anyhow::Result<Self> {
Ok(Self {
pub fn new(nats_client: NatsClient) -> Self {
Self {
nats_client,
last_slot_info_instance: Arc::default(),
})
}
}
}

Expand Down

0 comments on commit 8048752

Please sign in to comment.