Skip to content

Commit aefe870

Browse files
authored
PIR: Small fixes related to initial scan (#6663)
Task/Issue URL: https://app.asana.com/1/137249556945/project/72649045549333/task/1211148863343070?focus=true ### Description See attached task description ### Steps to test this PR Run PIR scan and dashboard should now show correct scanned number
1 parent 05c58cc commit aefe870

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pir/pir-impl/src/main/java/com/duckduckgo/pir/impl/dashboard/messaging/handlers/PirWebInitialScanStatusMessageHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PirWebInitialScanStatusMessageHandler @Inject constructor(
6464
response = PirWebMessageResponse.InitialScanResponse(
6565
resultsFound = getResultsFound(),
6666
scanProgress = PirWebMessageResponse.InitialScanResponse.ScanProgress(
67-
currentScan = stateProvider.getFullyCompletedBrokersTotal(),
67+
currentScans = stateProvider.getFullyCompletedBrokersTotal(),
6868
totalScans = stateProvider.getActiveBrokersAndMirrorSitesTotal(),
6969
scannedBrokers = getScannedBrokers(),
7070
),

pir/pir-impl/src/main/java/com/duckduckgo/pir/impl/dashboard/messaging/model/PirWebMessageResponse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ sealed interface PirWebMessageResponse {
102102
}
103103

104104
data class ScanProgress(
105-
val currentScan: Int,
105+
val currentScans: Int,
106106
val totalScans: Int,
107107
val scannedBrokers: List<ScannedBroker>,
108108
) {

0 commit comments

Comments
 (0)