Fix/patch db unwrap remove (#1481)

* fix: Change the git to always give a maybe, then create the error in the failure cases

* fix: No wifi last

* chore: Revert to older api

* fix: build for sdk

* fix: build for sdk

* chore: update patch db

* chore: use the master patch db
This commit is contained in:
J M
2022-06-06 09:52:19 -06:00
committed by GitHub
parent 34729c4509
commit e0c68c1911
3 changed files with 3 additions and 12 deletions

View File

@@ -8,4 +8,4 @@ if [ "$0" != "./install-sdk.sh" ]; then
exit 1 exit 1
fi fi
cargo install --bin=embassy-sdk --path=. --no-default-features cargo install --bin=embassy-sdk --path=. --no-default-features --features=js_engine

View File

@@ -134,16 +134,7 @@ pub async fn init(cfg: &RpcContextConfig, product_key: &str) -> Result<(), Error
crate::net::wifi::synchronize_wpa_supplicant_conf( crate::net::wifi::synchronize_wpa_supplicant_conf(
&cfg.datadir().join("main"), &cfg.datadir().join("main"),
&receipts &receipts.last_wifi_region.get(&mut handle).await?,
.last_wifi_region
.get(&mut handle)
.await
.map_err(|_e| {
Error::new(
color_eyre::eyre::eyre!("Could not find the last wifi region"),
crate::ErrorKind::NotFound,
)
})?,
) )
.await?; .await?;
tracing::info!("Synchronized wpa_supplicant.conf"); tracing::info!("Synchronized wpa_supplicant.conf");