File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,11 +153,11 @@ async fn run(config: ClientConfig) -> Result<(), Status> {
153153
154154 // Token for cancel.
155155 let cancel = CancellationToken :: new ();
156- let cancel_fo_task = cancel . clone ();
156+ let cancel_for_task = cancel . clone ();
157157 tokio :: spawn (async move {
158158 // Cancel after 10 seconds.
159159 tokio :: time :: sleep (Duration :: from_secs (10 )). await ;
160- cancel_fo_task . cancel ();
160+ cancel_for_task . cancel ();
161161 });
162162
163163 // Start receiving messages from the subscription.
Original file line number Diff line number Diff line change 143143//!
144144//! // Token for cancel.
145145//! let cancel = CancellationToken::new();
146- //! let cancel2 = cancel.clone();
146+ //! let cancel_for_task = cancel.clone();
147147//! tokio::spawn(async move {
148148//! // Cancel after 10 seconds.
149149//! tokio::time::sleep(Duration::from_secs(10)).await;
150- //! cancel2 .cancel();
150+ //! cancel_for_task .cancel();
151151//! });
152152//!
153153//! // Start receiving messages from the subscription.
You can’t perform that action at this time.
0 commit comments