fix: update for latest fred

This commit is contained in:
DarkCat09 2025-01-09 18:22:39 +04:00
parent c820b95a2d
commit fd25b49cff
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82
3 changed files with 6 additions and 9 deletions

View file

@ -11,10 +11,10 @@
// } // }
// } // }
use fred::prelude::RedisClient; use fred::prelude::Client;
use crate::cli::{Cli, SocketServerArgs}; use crate::cli::{Cli, SocketServerArgs};
pub async fn socketserv_main(args: Cli, specific_args: SocketServerArgs, client: RedisClient) { pub async fn socketserv_main(args: Cli, specific_args: SocketServerArgs, client: Client) {
todo!() todo!()
} }

View file

@ -9,12 +9,9 @@ mod web_server;
use clap::Parser; use clap::Parser;
use cli::{Cli, MyCommand}; use cli::{Cli, MyCommand};
use fred::{ use fred::prelude::{
clients::RedisClient, Client as RedisClient, ClientLike, Config as RedisConfig, ConnectionConfig, PerformanceConfig,
prelude::ClientLike, ReconnectPolicy, Server, ServerConfig,
types::{
ConnectionConfig, PerformanceConfig, ReconnectPolicy, RedisConfig, Server, ServerConfig,
},
}; };
use ingest_socket_server::socketserv_main; use ingest_socket_server::socketserv_main;

View file

@ -28,7 +28,7 @@ use crate::Cli;
use ntex::web; use ntex::web;
pub async fn server_main(args: Cli, specific_args: WebServerArgs, client: RedisClient) { pub async fn server_main(args: Cli, specific_args: WebServerArgs, client: RedisClient) {
let asd: Str = client.ping().await.unwrap(); let asd: Str = client.ping(None).await.unwrap();
println!("Ping result: {}", asd); println!("Ping result: {}", asd);