Skip to content

Commit 0ef9d1e

Browse files
committed
This is what I get for doing a quick search/replace
1 parent d2f7d24 commit 0ef9d1e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

trust-quorum/src/task.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl NodeTaskHandle {
203203
msg: ReconfigureMsg,
204204
) -> Result<(), NodeApiError> {
205205
let (tx, rx) = oneshot::channel();
206-
self.tx.send(NodeApiRequest::Reconfigure { msg, tx: tx }).await?;
206+
self.tx.send(NodeApiRequest::Reconfigure { msg, tx }).await?;
207207
rx.await??;
208208
Ok(())
209209
}
@@ -214,7 +214,7 @@ impl NodeTaskHandle {
214214
msg: LrtqUpgradeMsg,
215215
) -> Result<(), NodeApiError> {
216216
let (tx, rx) = oneshot::channel();
217-
self.tx.send(NodeApiRequest::LrtqUpgrade { msg, tx: tx }).await?;
217+
self.tx.send(NodeApiRequest::LrtqUpgrade { msg, tx }).await?;
218218
rx.await??;
219219
Ok(())
220220
}
@@ -226,7 +226,7 @@ impl NodeTaskHandle {
226226
&self,
227227
) -> Result<Option<CoordinatorStatus>, NodeApiError> {
228228
let (tx, rx) = oneshot::channel();
229-
self.tx.send(NodeApiRequest::CoordinatorStatus { tx: tx }).await?;
229+
self.tx.send(NodeApiRequest::CoordinatorStatus { tx }).await?;
230230
let res = rx.await?;
231231
Ok(res)
232232
}
@@ -240,7 +240,7 @@ impl NodeTaskHandle {
240240
epoch: Epoch,
241241
) -> Result<Option<ReconstructedRackSecret>, NodeApiError> {
242242
let (tx, rx) = oneshot::channel();
243-
self.tx.send(NodeApiRequest::LoadRackSecret { epoch, tx: tx }).await?;
243+
self.tx.send(NodeApiRequest::LoadRackSecret { epoch, tx }).await?;
244244
let rs = rx.await??;
245245
Ok(rs)
246246
}
@@ -256,9 +256,7 @@ impl NodeTaskHandle {
256256
config: Configuration,
257257
) -> Result<CommitStatus, NodeApiError> {
258258
let (tx, rx) = oneshot::channel();
259-
self.tx
260-
.send(NodeApiRequest::PrepareAndCommit { config, tx: tx })
261-
.await?;
259+
self.tx.send(NodeApiRequest::PrepareAndCommit { config, tx }).await?;
262260
let res = rx.await??;
263261
Ok(res)
264262
}
@@ -275,7 +273,7 @@ impl NodeTaskHandle {
275273
epoch: Epoch,
276274
) -> Result<CommitStatus, NodeApiError> {
277275
let (tx, rx) = oneshot::channel();
278-
self.tx.send(NodeApiRequest::Commit { rack_id, epoch, tx: tx }).await?;
276+
self.tx.send(NodeApiRequest::Commit { rack_id, epoch, tx }).await?;
279277
let res = rx.await??;
280278
Ok(res)
281279
}
@@ -302,15 +300,15 @@ impl NodeTaskHandle {
302300
/// Return information about connectivity to other peers
303301
pub async fn conn_mgr_status(&self) -> Result<ConnMgrStatus, NodeApiError> {
304302
let (tx, rx) = oneshot::channel();
305-
self.tx.send(NodeApiRequest::ConnMgrStatus { tx: tx }).await?;
303+
self.tx.send(NodeApiRequest::ConnMgrStatus { tx }).await?;
306304
let res = rx.await?;
307305
Ok(res)
308306
}
309307

310308
/// Return internal information for the [`Node`]
311309
pub async fn status(&self) -> Result<NodeStatus, NodeApiError> {
312310
let (tx, rx) = oneshot::channel();
313-
self.tx.send(NodeApiRequest::NodeStatus { tx: tx }).await?;
311+
self.tx.send(NodeApiRequest::NodeStatus { tx }).await?;
314312
let res = rx.await?;
315313
Ok(res)
316314
}

0 commit comments

Comments
 (0)