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};
|
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!()
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue