Skip to content

Commit

Permalink
perf: 增加应用市场模式批量检查的重试次数
Browse files Browse the repository at this point in the history
  • Loading branch information
xz-dev committed Oct 30, 2020
1 parent b588944 commit 6c28613
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dependencies {
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
testImplementation 'junit:junit:4.13'
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
Expand Down
4 changes: 2 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.protobuf'

def grpc_version = '1.32.1'
def grpc_version = '1.33.0'
android {
compileSdkVersion 30

Expand Down Expand Up @@ -64,7 +64,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
testImplementation 'junit:junit:4.13'
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ object GrpcReleaseApi {
chunkedCallGetAppRelease(hubUuid, auth, appIdList)
}

private suspend fun chunkedCallGetAppRelease(
internal suspend fun chunkedCallGetAppRelease(
hubUuid: String, auth: Map<String, String?>,
appIdList: Collection<Map<String, String?>>, autoRetryNum: Int = 3,
) {
Expand All @@ -73,7 +73,7 @@ object GrpcReleaseApi {
}
}

internal suspend fun callGetAppRelease(
private suspend fun callGetAppRelease(
hubUuid: String, auth: Map<String, String?>,
appIdList0: Collection<Map<String, String?>>, autoRetryNum: Int,
channel: ManagedChannel = GrpcApi.getChannel(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Applications(override val appDatabase: ApplicationsDatabase,
}
}
})
GrpcReleaseApi.callGetAppRelease(hubUuid, auth, excludeAppIdList.keys, 0)
GrpcReleaseApi.chunkedCallGetAppRelease(hubUuid, auth, excludeAppIdList.keys, 2)
}

override fun refreshData() {
Expand Down

0 comments on commit 6c28613

Please sign in to comment.