From 68525fe9dc1a62ef2b5a5f2a810f25e082c11721 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Fri, 20 Oct 2023 20:30:45 -0700 Subject: [PATCH] fix: Fix memory issue. --- CHANGELOG.md | 6 ++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- src/proto.rs | 5 ++--- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4e0a81..a4116a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.1.1 + +#### 🐞 Fixes + +- Potentially fixed a WASM memory issue. + ## 0.1.0 #### 🚀 Updates diff --git a/Cargo.lock b/Cargo.lock index 1ab6207..5edf883 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2122,7 +2122,7 @@ dependencies = [ [[package]] name = "python_plugin" -version = "0.1.0" +version = "0.1.1" dependencies = [ "extism-pdk", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index 3958bb4..939199a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "python_plugin" -version = "0.1.0" +version = "0.1.1" edition = "2021" license = "MIT" publish = false diff --git a/src/proto.rs b/src/proto.rs index 7f98c1c..8b8a280 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -68,9 +68,8 @@ pub fn download_prebuilt( return err!(PluginError::UnsupportedCanary { tool: NAME.into() }.into()); } - let releases: HashMap> = fetch_url_with_cache( - "https://raw.githubusercontent.com/moonrepo/python-plugin/master/releases.json", - )?; + let releases: HashMap> = + fetch_url("https://raw.githubusercontent.com/moonrepo/python-plugin/master/releases.json")?; let Some(release_triples) = releases.get(&version) else { return err!("No pre-built available for version {}!", version);