Update VersionDataFetcher KDoc

This commit is contained in:
bemusementpark 2024-08-01 10:34:45 +09:30
parent 72d77a9caf
commit 5c4e95c4ec
2 changed files with 4 additions and 7 deletions

View File

@ -41,10 +41,10 @@ class VersionDataFetcher @Inject constructor(
private val scope = CoroutineScope(Dispatchers.Default)
/**
* Schedules fetching version data [delayMillis] milliseconds from now.
* Schedules fetching version data.
*
* This method will fetch immediately if 4 hours or more has elapsed since the last successful
* check.
* @param delayMillis The delay before fetching version data. Default value is 4 hours from the
* last check or 0 if there was no previous check or if it was longer than 4 hours ago.
*/
@JvmOverloads
fun startTimedVersionCheck(

View File

@ -131,10 +131,7 @@ object FileServerApi {
val signature = BlindKeyAPI.blindVersionSign(secretKey, timestamp)
// The hex encoded version-blinded public key with a 07 prefix
val blindedPkHex = buildString {
append("07")
append(blindedKeys.pubKey.toHexString())
}
val blindedPkHex = "07" + blindedKeys.pubKey.toHexString()
val request = Request(
verb = HTTP.Verb.GET,