TrueTime.swift
TrueTime.swift copied to clipboard
Connection Timed out Error
"Error! Error Domain=com.instacart.TrueTimeErrorDomain Code=2 "The connection timed out." UserInfo={NSLocalizedDescription=The connection timed out.}"
Version : TrueTime (5.0.3)
My code:
let client = TrueTimeClient.sharedInstance
client.start()
let now = client.referenceTime?.now()
client.fetchIfNeeded { result in
switch result {
case let .success(referenceTime):
let now = referenceTime.now()
case let .failure(error):
print("Error! \(error)")
}
}
It was working before. When i check this yesterday, I came with this error. Kindly check this