From fd0a218f237879e6474afea8bd09d6e32fdfee4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Djk=C3=A1=C5=A5o?= Date: Mon, 15 Apr 2024 19:50:54 +0200 Subject: [PATCH] bump versions --- sdk/Cargo.toml | 14 +++++++------- sdk/src/apl/redis_apl.rs | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index a05c73a..99e61ab 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "saleor-app-sdk" authors = ["Djkáťo "] -version = "0.2.0" +version = "0.2.1" edition = "2021" description = "Unofficial Saleor App SDK like library, made to for Rust." keywords = ["saleor", "sdk", "plugin"] @@ -28,10 +28,10 @@ dotenvy.workspace = true tower = { workspace = true } rust_decimal = { workspace = true, features = ["serde-float"] } iso_currency = { workspace = true, features = ["with-serde", "iterator"] } -reqwest = { version = "0.11.24", features = ["json"] } -jsonwebtoken = "9.2.0" -async-trait = "0.1.77" -http = "1.0.0" +reqwest = { version = "0.12.3", features = ["json"] } +jsonwebtoken = "9.3.0" +async-trait = "0.1.80" +http = "1.1.0" url = "2.5.0" -strum = "0.26.0" -strum_macros = "0.26.1" +strum = "0.26.2" +strum_macros = "0.26.2" diff --git a/sdk/src/apl/redis_apl.rs b/sdk/src/apl/redis_apl.rs index 14687a1..f611466 100644 --- a/sdk/src/apl/redis_apl.rs +++ b/sdk/src/apl/redis_apl.rs @@ -18,7 +18,7 @@ pub struct RedisApl { impl APL for RedisApl { async fn get(&self, saleor_api_url: &str) -> Result { debug!("get()"); - let mut conn = self.client.get_async_connection().await?; + let mut conn = self.client.get_multiplexed_async_connection().await?; let val: String = conn.get(self.prepare_key(saleor_api_url)).await?; let val: AuthData = serde_json::from_str(&val)?; info!("sucessful get"); @@ -27,7 +27,7 @@ impl APL for RedisApl { } async fn set(&self, auth_data: AuthData) -> Result<()> { debug!("set()"); - let mut conn = self.client.get_async_connection().await?; + let mut conn = self.client.get_multiplexed_async_connection().await?; conn.set( self.prepare_key(&auth_data.saleor_api_url), serde_json::to_string(&auth_data)?, @@ -38,7 +38,7 @@ impl APL for RedisApl { } async fn delete(&self, saleor_api_url: &str) -> Result<()> { debug!("delete(), {}", saleor_api_url); - let mut conn = self.client.get_async_connection().await?; + let mut conn = self.client.get_multiplexed_async_connection().await?; let val: String = conn.get_del(self.prepare_key(saleor_api_url)).await?; debug!("sucessful delete(), {}", val); @@ -47,7 +47,7 @@ impl APL for RedisApl { } async fn is_ready(&self) -> Result<()> { debug!("is_ready()"); - let mut conn = self.client.get_async_connection().await?; + let mut conn = self.client.get_multiplexed_async_connection().await?; let val: String = redis::cmd("INFO") .arg("server") .query_async(&mut conn) @@ -59,7 +59,7 @@ impl APL for RedisApl { } async fn is_configured(&self) -> Result<()> { debug!("is_configured()"); - let mut conn = self.client.get_async_connection().await?; + let mut conn = self.client.get_multiplexed_async_connection().await?; let val: String = redis::cmd("INFO") .arg("server") .query_async(&mut conn)