remove loop

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
Hannah Hunter 2023-06-30 13:37:57 -04:00
parent aaa2c2a203
commit ff1f2803df
1 changed files with 19 additions and 22 deletions

View File

@ -101,7 +101,6 @@ For example, to replace the `source` and `id` values from [the CloudEvent exampl
```python
with DaprClient() as client:
for i in range(1):
order = {'orderId': i}
# Publish an event/message using Dapr PubSub
result = client.publish_event(
@ -117,7 +116,6 @@ with DaprClient() as client:
{{% codetab %}}
```csharp
for (int i = 1) {
var order = new Order(i);
using var client = new DaprClientBuilder().Build();
@ -132,7 +130,6 @@ for (int i = 1) {
Console.WriteLine("Published data: " + order);
await Task.Delay(TimeSpan.FromSeconds(1));
}
```
{{% /codetab %}}