From 62b2fa112bae18e7bf0c45f18fa0c40171fa3ada Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Thu, 22 Oct 2020 13:19:28 +1100 Subject: [PATCH] Clean --- .../src/Loki/API/Onion Requests/OnionRequestAPI.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SignalServiceKit/src/Loki/API/Onion Requests/OnionRequestAPI.swift b/SignalServiceKit/src/Loki/API/Onion Requests/OnionRequestAPI.swift index 1324460a0..7a91e7801 100644 --- a/SignalServiceKit/src/Loki/API/Onion Requests/OnionRequestAPI.swift +++ b/SignalServiceKit/src/Loki/API/Onion Requests/OnionRequestAPI.swift @@ -11,7 +11,7 @@ public enum OnionRequestAPI { /// The number of snodes (including the guard snode) in a path. private static let pathSize: UInt = 3 /// The number of times a path can fail before it's replaced. - private static let pathFailureThreshold: UInt = 2 + private static let pathFailureThreshold: UInt = 3 /// The number of paths to maintain. public static let targetPathCount: UInt = 2 @@ -313,8 +313,8 @@ public enum OnionRequestAPI { } let payload: JSON = [ "body" : parametersAsString, - "endpoint": endpoint, - "method" : request.httpMethod, + "endpoint" : endpoint, + "method" : request.httpMethod!, "headers" : headers ] let destination = Destination.server(host: host, x25519PublicKey: x25519PublicKey)