Skip to content

Commit 82c0ba3

Browse files
Fix bad indendation in tests (#18)
1 parent ad1aaab commit 82c0ba3

File tree

1 file changed

+24
-27
lines changed

1 file changed

+24
-27
lines changed

src/context/mod.rs

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -239,18 +239,17 @@ pub trait ContextClient<'ctx>: private::SealedContext<'ctx> {
239239
/// }
240240
///
241241
/// # async fn handler(ctx: Context<'_>) {
242-
/// let client = ctx.service_client::<MyServiceClient>();
242+
/// let client = ctx.service_client::<MyServiceClient>();
243243
///
244-
/// // Do request
245-
/// let result = client.handle().call().await;
244+
/// // Do request
245+
/// let result = client.handle().call().await;
246246
///
247-
/// // Just send the request, don't wait the response
248-
/// client.handle().send();
249-
///
250-
/// // Schedule the request to be executed later
251-
/// client.handle().send_with_delay(Duration::from_secs(60));
252-
/// }
247+
/// // Just send the request, don't wait the response
248+
/// client.handle().send();
253249
///
250+
/// // Schedule the request to be executed later
251+
/// client.handle().send_with_delay(Duration::from_secs(60));
252+
/// # }
254253
/// ```
255254
fn service_client<C>(&self) -> C
256255
where
@@ -271,18 +270,17 @@ pub trait ContextClient<'ctx>: private::SealedContext<'ctx> {
271270
/// }
272271
///
273272
/// # async fn handler(ctx: Context<'_>) {
274-
/// let client = ctx.object_client::<MyObjectClient>("my-key");
275-
///
276-
/// // Do request
277-
/// let result = client.handle().call().await;
273+
/// let client = ctx.object_client::<MyObjectClient>("my-key");
278274
///
279-
/// // Just send the request, don't wait the response
280-
/// client.handle().send();
275+
/// // Do request
276+
/// let result = client.handle().call().await;
281277
///
282-
/// // Schedule the request to be executed later
283-
/// client.handle().send_with_delay(Duration::from_secs(60));
284-
/// }
278+
/// // Just send the request, don't wait the response
279+
/// client.handle().send();
285280
///
281+
/// // Schedule the request to be executed later
282+
/// client.handle().send_with_delay(Duration::from_secs(60));
283+
/// # }
286284
/// ```
287285
fn object_client<C>(&self, key: impl Into<String>) -> C
288286
where
@@ -303,18 +301,17 @@ pub trait ContextClient<'ctx>: private::SealedContext<'ctx> {
303301
/// }
304302
///
305303
/// # async fn handler(ctx: Context<'_>) {
306-
/// let client = ctx.workflow_client::<MyWorkflowClient>("my-key");
307-
///
308-
/// // Do request
309-
/// let result = client.handle().call().await;
304+
/// let client = ctx.workflow_client::<MyWorkflowClient>("my-key");
310305
///
311-
/// // Just send the request, don't wait the response
312-
/// client.handle().send();
306+
/// // Do request
307+
/// let result = client.handle().call().await;
313308
///
314-
/// // Schedule the request to be executed later
315-
/// client.handle().send_with_delay(Duration::from_secs(60));
316-
/// }
309+
/// // Just send the request, don't wait the response
310+
/// client.handle().send();
317311
///
312+
/// // Schedule the request to be executed later
313+
/// client.handle().send_with_delay(Duration::from_secs(60));
314+
/// # }
318315
/// ```
319316
fn workflow_client<C>(&self, key: impl Into<String>) -> C
320317
where

0 commit comments

Comments
 (0)