Fix iplocate cerificates (#283)

This commit is contained in:
Maciej Hirsz
2020-08-26 14:17:53 +02:00
committed by GitHub
parent 0f13c76fe1
commit 530132a3bb
3 changed files with 2 additions and 12 deletions
+1 -10
View File
@@ -136,16 +136,7 @@ impl Locator {
where
for<'de> T: Deserialize<'de>,
{
let mut result = match self.client.get(url).send() {
Ok(result) => result,
Err(error) => {
info!("Failed query {} ({:?})", url, error);
return Err(error);
}
};
match result.json::<T>() {
match self.client.get(url).send()?.json::<T>() {
Ok(result) => Ok(Some(result)),
Err(err) => {
debug!("JSON error for ip location: {:?}", err);