bump versions
This commit is contained in:
parent
c1ce5e1174
commit
fd0a218f23
2 changed files with 12 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "saleor-app-sdk"
|
||||
authors = ["Djkáťo <djkatovfx@gmail.com>"]
|
||||
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"
|
||||
|
|
|
@ -18,7 +18,7 @@ pub struct RedisApl {
|
|||
impl APL for RedisApl {
|
||||
async fn get(&self, saleor_api_url: &str) -> Result<AuthData> {
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue