Skip to content

Commit 07becd3

Browse files
Remove options bag not in previous API from perf (#30405)
1 parent c57a9fb commit 07becd3

File tree

1 file changed

+4
-8
lines changed
  • sdk/storage/Azure.Storage.Files.DataLake/perf/Azure.Storage.Files.DataLake.Perf/Scenarios

1 file changed

+4
-8
lines changed

sdk/storage/Azure.Storage.Files.DataLake/perf/Azure.Storage.Files.DataLake.Perf/Scenarios/Read.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ public override void Run(CancellationToken cancellationToken)
2929
{
3030
FileClient.ReadTo(
3131
Stream.Null,
32-
new Models.DataLakeFileReadToOptions
33-
{
34-
TransferOptions = Options.StorageTransferOptions
35-
},
32+
conditions: default,
33+
transferOptions: Options.StorageTransferOptions,
3634
cancellationToken);
3735
}
3836

@@ -44,10 +42,8 @@ public async override Task RunAsync(CancellationToken cancellationToken)
4442
{
4543
await FileClient.ReadToAsync(
4644
Stream.Null,
47-
new Models.DataLakeFileReadToOptions
48-
{
49-
TransferOptions = Options.StorageTransferOptions
50-
},
45+
conditions: default,
46+
transferOptions: Options.StorageTransferOptions,
5147
cancellationToken);
5248
}
5349
}

0 commit comments

Comments
 (0)