add workaround for a SS bug when getting and updating expiries

pull/731/head
Ryan ZHAO 6 months ago
parent ff691529c4
commit 2cc51aec28

@ -625,7 +625,7 @@ public final class SnodeAPI {
let sendTimestamp: UInt64 = UInt64(SnodeAPI.currentOffsetTimestampMs())
// FIXME: There is a bug on SS now that a single-hash lookup is not working. Remove it when the bug is fixed
let serverHashes: [String] = serverHashes.appending("fakehash")
let serverHashes: [String] = serverHashes.appending("///////////////////////////////////////////") // Fake hash with valid length
return SnodeAPI
.send(
@ -831,6 +831,9 @@ public final class SnodeAPI {
.eraseToAnyPublisher()
}
// FIXME: There is a bug on SS now that a single-hash lookup is not working. Remove it when the bug is fixed
let serverHashes: [String] = serverHashes.appending("///////////////////////////////////////////") // Fake hash with valid length
return getSwarm(for: publicKey)
.tryFlatMapWithRandomSnode(retry: maxRetryCount) { snode -> AnyPublisher<[String: UpdateExpiryResponseResult], Error> in
SnodeAPI

Loading…
Cancel
Save