fix: update fred to v9.0.3

This commit is contained in:
DarkCat09 2024-06-03 11:23:53 +04:00
parent b234914d8b
commit f8d788f8bb
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3
3 changed files with 31 additions and 32 deletions

View file

@ -24,14 +24,8 @@ use crate::web_server::old_device_sensor_api::device_handler;
use ntex::web;
pub async fn server_main() {
let config = RedisConfig::default();
let perf = PerformanceConfig::default();
let policy = ReconnectPolicy::default();
let client = RedisClient::new(config, Some(perf), Some(policy));
// connect to the server, returning a handle to the task that drives the connection
client.connect().await.unwrap().unwrap();
client.wait_for_connect().await.unwrap();
let client = RedisClient::default();
client.init().await.unwrap();
let asd: Str = client.ping().await.unwrap();