fix: update fred to v9.0.3
This commit is contained in:
parent
b234914d8b
commit
f8d788f8bb
3 changed files with 31 additions and 32 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue