Skip to content

Commit 753262a

Browse files
updating code block to c#
1 parent dfc051e commit 753262a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/search/tutorial-optimize-indexing-push-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ From here, we wrap the exponential backoff code into a function so it can be eas
322322

323323
Another function is then created to manage the active threads. For simplicity, that function isn't included here but can be found in [ExponentialBackoff.cs](https://github.com/Azure-Samples/azure-search-dotnet-samples/blob/master/optimize-data-indexing/OptimizeDataIndexing/ExponentialBackoff.cs). The function can be called with the following command where `hotels` is the data we want to upload, `1000` is the batch size, and `8` is the number of concurrent threads:
324324

325-
```cmd
325+
```csharp
326326
ExponentialBackoff.IndexData(indexClient, hotels, 1000, 8).Wait();
327327
```
328328

0 commit comments

Comments
 (0)