mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-18 07:18:23 +00:00
Update rustls / tls functions.
This commit is contained in:
@ -95,7 +95,9 @@ enum RedisClient {
|
||||
impl RedisClient {
|
||||
async fn get_async_connection(&self) -> Result<RedisConnection> {
|
||||
match self {
|
||||
RedisClient::Client(c) => Ok(RedisConnection::Client(c.get_async_connection().await?)),
|
||||
RedisClient::Client(c) => Ok(RedisConnection::Client(
|
||||
c.get_multiplexed_async_connection().await?,
|
||||
)),
|
||||
RedisClient::ClusterClient(c) => Ok(RedisConnection::ClusterClient(
|
||||
c.get_async_connection().await?,
|
||||
)),
|
||||
@ -104,7 +106,7 @@ impl RedisClient {
|
||||
}
|
||||
|
||||
enum RedisConnection {
|
||||
Client(redis::aio::Connection),
|
||||
Client(redis::aio::MultiplexedConnection),
|
||||
ClusterClient(redis::cluster_async::ClusterConnection),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user