fix: update for latest fred
This commit is contained in:
parent
c820b95a2d
commit
fd25b49cff
3 changed files with 6 additions and 9 deletions
|
@ -11,10 +11,10 @@
|
|||
// }
|
||||
// }
|
||||
|
||||
use fred::prelude::RedisClient;
|
||||
use fred::prelude::Client;
|
||||
|
||||
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!()
|
||||
}
|
||||
|
|
|
@ -9,12 +9,9 @@ mod web_server;
|
|||
|
||||
use clap::Parser;
|
||||
use cli::{Cli, MyCommand};
|
||||
use fred::{
|
||||
clients::RedisClient,
|
||||
prelude::ClientLike,
|
||||
types::{
|
||||
ConnectionConfig, PerformanceConfig, ReconnectPolicy, RedisConfig, Server, ServerConfig,
|
||||
},
|
||||
use fred::prelude::{
|
||||
Client as RedisClient, ClientLike, Config as RedisConfig, ConnectionConfig, PerformanceConfig,
|
||||
ReconnectPolicy, Server, ServerConfig,
|
||||
};
|
||||
use ingest_socket_server::socketserv_main;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ use crate::Cli;
|
|||
use ntex::web;
|
||||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue