mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-30 06:37:22 +00:00
Fix iplocate cerificates (#283)
This commit is contained in:
@@ -48,8 +48,6 @@ impl Actor for NodeConnector {
|
||||
|
||||
impl NodeConnector {
|
||||
pub fn new(aggregator: Addr<Aggregator>, locator: Recipient<LocateRequest>, ip: Option<Ipv4Addr>) -> Self {
|
||||
info!("Node connected: {:?}", ip);
|
||||
|
||||
Self {
|
||||
// Garbage id, will be replaced by the Initialize message
|
||||
nid: !0,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user