|
@@ -589,16 +589,15 @@ impl User {
|
|
|
bridge.first_positive_report = get_date();
|
|
|
}
|
|
|
|
|
|
- positive_reports.push(
|
|
|
- PositiveReport::from_lox_credential(
|
|
|
- fingerprint,
|
|
|
- None,
|
|
|
- &self.primary_cred,
|
|
|
- get_lox_pub(&config.la_pubkeys),
|
|
|
- config.country.to_string(),
|
|
|
- )
|
|
|
- .unwrap(),
|
|
|
- );
|
|
|
+ if let Ok(pr) = PositiveReport::from_lox_credential(
|
|
|
+ fingerprint,
|
|
|
+ None,
|
|
|
+ &self.primary_cred,
|
|
|
+ get_lox_pub(&config.la_pubkeys),
|
|
|
+ config.country.to_string(),
|
|
|
+ ) {
|
|
|
+ positive_reports.push(pr)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -628,7 +627,7 @@ impl User {
|
|
|
level_up(
|
|
|
&config.la_net,
|
|
|
&self.primary_cred,
|
|
|
- &reachcred.unwrap(),
|
|
|
+ &reachcred.unwrap(), // must be Some
|
|
|
get_lox_pub(&config.la_pubkeys),
|
|
|
get_reachability_pub(&config.la_pubkeys),
|
|
|
)
|
|
@@ -806,7 +805,7 @@ impl User {
|
|
|
level_up(
|
|
|
&config.la_net,
|
|
|
&self.primary_cred,
|
|
|
- &reachcred.unwrap(),
|
|
|
+ &reachcred.unwrap(), // must be Some
|
|
|
get_lox_pub(&config.la_pubkeys),
|
|
|
get_reachability_pub(&config.la_pubkeys),
|
|
|
)
|