@@ -69,16 +69,15 @@ class PublishService extends OperationService {
6969 // }
7070
7171 // 2. Check if all responses have been received
72- // 2.1 If minimum replication is reached, mark the operation as completed
72+ // 2.1 If minimum replication is reached, mark the operation as completed
7373
7474 const record = await this . operationIdService . getOperationIdRecord ( operationId ) ;
7575 if ( record ?. minAcksReached ) return ;
7676
77-
7877 if ( completedNumber >= minAckResponses ) {
7978 this . logger . info (
8079 `[PUBLISH] Minimum replication reached for operationId: ${ operationId } , ` +
81- `datasetRoot: ${ datasetRoot } , completed: ${ completedNumber } /${ minAckResponses } ` ,
80+ `datasetRoot: ${ datasetRoot } , completed: ${ completedNumber } /${ minAckResponses } ` ,
8281 ) ;
8382 await this . markOperationAsCompleted (
8483 operationId ,
@@ -89,11 +88,11 @@ class PublishService extends OperationService {
8988 await this . repositoryModuleManager . updateMinAcksReached ( operationId , true ) ;
9089 this . logResponsesSummary ( completedNumber , failedNumber ) ;
9190 }
92- // 2.2 Otherwise, mark as failed
93- else if ( totalResponses === numberOfFoundNodes ) {
91+ // 2.2 Otherwise, mark as failed
92+ else if ( totalResponses === numberOfFoundNodes ) {
9493 this . logger . warn (
9594 `[PUBLISH] Failed for operationId: ${ operationId } , ` +
96- `only ${ completedNumber } /${ minAckResponses } nodes responded successfully` ,
95+ `only ${ completedNumber } /${ minAckResponses } nodes responded successfully` ,
9796 ) ;
9897 await this . markOperationAsFailed (
9998 operationId ,
0 commit comments