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()) 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 // 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 return SnodeAPI
.send( .send(
@ -831,6 +831,9 @@ public final class SnodeAPI {
.eraseToAnyPublisher() .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) return getSwarm(for: publicKey)
.tryFlatMapWithRandomSnode(retry: maxRetryCount) { snode -> AnyPublisher<[String: UpdateExpiryResponseResult], Error> in .tryFlatMapWithRandomSnode(retry: maxRetryCount) { snode -> AnyPublisher<[String: UpdateExpiryResponseResult], Error> in
SnodeAPI SnodeAPI

Loading…
Cancel
Save