Update VersionDataFetcher KDoc

pull/1585/head
bemusementpark 1 year ago
parent 72d77a9caf
commit 5c4e95c4ec

@ -41,10 +41,10 @@ class VersionDataFetcher @Inject constructor(
private val scope = CoroutineScope(Dispatchers.Default) 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 * @param delayMillis The delay before fetching version data. Default value is 4 hours from the
* check. * last check or 0 if there was no previous check or if it was longer than 4 hours ago.
*/ */
@JvmOverloads @JvmOverloads
fun startTimedVersionCheck( fun startTimedVersionCheck(

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

Loading…
Cancel
Save