@@ -35,7 +35,7 @@ public async Task<BlockRowItem> RunAsync(
35
35
36
36
if ( blockItem . State == BlockState . CompletingExport )
37
37
{
38
- blockItem = await CleanUrlsAsync ( blockItem , ct ) ;
38
+ blockItem = CleanUrls ( blockItem ) ;
39
39
}
40
40
if ( blockItem . State == BlockState . Planned )
41
41
{
@@ -75,13 +75,13 @@ private async Task<BlockRowItem> AwaitExportBlockAsync(
75
75
throw new InvalidDataException ( "No URL exported" ) ;
76
76
}
77
77
blockItem = blockItem . ChangeState ( BlockState . CompletingExport ) ;
78
- await RowItemGateway . AppendAsync ( blockItem , ct ) ;
78
+ RowItemGateway . Append ( blockItem ) ;
79
79
foreach ( var urlItem in urlItems )
80
80
{
81
- await RowItemGateway . AppendAsync ( urlItem , ct ) ;
81
+ RowItemGateway . Append ( urlItem ) ;
82
82
}
83
83
blockItem = blockItem . ChangeState ( BlockState . Exported ) ;
84
- await RowItemGateway . AppendAsync ( blockItem , ct ) ;
84
+ RowItemGateway . Append ( blockItem ) ;
85
85
86
86
return blockItem ;
87
87
}
@@ -112,14 +112,12 @@ private async Task<BlockRowItem> ExportBlockAsync(
112
112
113
113
blockItem = blockItem . ChangeState ( BlockState . Exporting ) ;
114
114
blockItem . OperationId = operationId ;
115
- await RowItemGateway . AppendAsync ( blockItem , ct ) ;
115
+ RowItemGateway . Append ( blockItem ) ;
116
116
117
117
return blockItem ;
118
118
}
119
119
120
- private async Task < BlockRowItem > CleanUrlsAsync (
121
- BlockRowItem blockItem ,
122
- CancellationToken ct )
120
+ private BlockRowItem CleanUrls ( BlockRowItem blockItem )
123
121
{
124
122
var existingUrls = RowItemGateway . InMemoryCache
125
123
. ActivityMap [ blockItem . ActivityName ]
@@ -130,12 +128,10 @@ private async Task<BlockRowItem> CleanUrlsAsync(
130
128
131
129
foreach ( var url in existingUrls )
132
130
{
133
- await RowItemGateway . AppendAsync (
134
- url . RowItem . ChangeState ( UrlState . Deleted ) ,
135
- ct ) ;
131
+ RowItemGateway . Append ( url . RowItem . ChangeState ( UrlState . Deleted ) ) ;
136
132
}
137
133
blockItem = blockItem . ChangeState ( BlockState . Exporting ) ;
138
- await RowItemGateway . AppendAsync ( blockItem , ct ) ;
134
+ RowItemGateway . Append ( blockItem ) ;
139
135
140
136
return blockItem ;
141
137
}
0 commit comments