diff --git a/file_store/src/cli/bucket.rs b/file_store/src/cli/bucket.rs index 8b4cca9bd..91b228c2e 100644 --- a/file_store/src/cli/bucket.rs +++ b/file_store/src/cli/bucket.rs @@ -154,6 +154,7 @@ impl Get { fs::OpenOptions::new() .write(true) .create(true) + .truncate(true) .open(&self.dest.join(Path::new(&info.key))) .map_err(Error::from) .and_then(|mut file| { diff --git a/file_store/src/file_sink.rs b/file_store/src/file_sink.rs index 54ed6ee71..d10dd93ed 100644 --- a/file_store/src/file_sink.rs +++ b/file_store/src/file_sink.rs @@ -432,6 +432,7 @@ impl FileSink { OpenOptions::new() .write(true) .create(true) + .truncate(true) .open(&new_path) .await?, )); diff --git a/mobile_verifier/src/reward_shares.rs b/mobile_verifier/src/reward_shares.rs index 49beb6c20..eebf697d0 100644 --- a/mobile_verifier/src/reward_shares.rs +++ b/mobile_verifier/src/reward_shares.rs @@ -428,10 +428,10 @@ impl HotspotPoints { let cbsd_id = radio_key.clone().into_cbsd_id(); let rp = self.radio_points.get_mut(&cbsd_id).unwrap(); // need to consider requirements from hip93 & hip84 before applying any boost - // hip93: if radio is wifi & location_trust score multiplier < 1, no boosting + // hip93: if radio is wifi & location_trust score multiplier < 0.75, no boosting // hip84: if radio has not met minimum data and subscriber thresholds, no boosting let final_boost_info = if radio_key.is_wifi() - && rp.location_trust_score_multiplier < dec!(1) + && rp.location_trust_score_multiplier < dec!(0.75) || !verified_radio_thresholds.is_verified(hotspot, cbsd_id) { BoostedHex {