Skip to content

Commit 6b0b444

Browse files
authored
Merge pull request #659 from bcgov/yj
chore: code cleanup
2 parents 895e28f + 10f1531 commit 6b0b444

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

server/StrDss.Service/RentalListingService.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ public async Task CreateRentalListingExportFiles()
146146
var lg = string.Empty;
147147

148148
var stopWatchForAll = Stopwatch.StartNew();
149-
//var stopWatch = Stopwatch.StartNew();
150149

151150
var currentMonth = DateUtils.ConvertUtcToPacificTime(new DateTime(currentTime.Year, currentTime.Month, 1)).AddDays(-1).ToString("yyyy-MM");
152151

@@ -175,8 +174,6 @@ public async Task CreateRentalListingExportFiles()
175174
{
176175
prExport.Add(line);
177176
}
178-
179-
//LogProgress(count, totalCount, stopWatch);
180177
}
181178

182179
await CreateFinalExports(allExport, prExport, lgExport, lg, lgId);
@@ -205,15 +202,6 @@ private async Task ProcessExportForLocalGovernment(List<string> export, long org
205202
}
206203
}
207204

208-
private void LogProgress(int count, int totalCount, Stopwatch stopWatch)
209-
{
210-
if (count % 10 == 0)
211-
{
212-
_logger.LogInformation($"Rental Listing Export - {count}/{totalCount} - {stopWatch.Elapsed.TotalSeconds} seconds ");
213-
stopWatch.Restart();
214-
}
215-
}
216-
217205
private async Task CreateFinalExports(List<string> allExport, List<string> prExport, List<string> lgExport, string lg, long lgId)
218206
{
219207
var date = DateUtils.ConvertUtcToPacificTime(DateTime.UtcNow).ToString("yyyyMMdd");

0 commit comments

Comments
 (0)