MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / get_async_connection

Method get_async_connection

chirpstack-integration/src/lib.rs:90–99  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

88
89impl RedisClient {
90 async fn get_async_connection(&self) -> Result<RedisConnection> {
91 match self {
92 RedisClient::Client(c) => Ok(RedisConnection::Client(
93 c.get_multiplexed_async_connection().await?,
94 )),
95 RedisClient::ClusterClient(c) => Ok(RedisConnection::ClusterClient(
96 c.get_async_connection().await?,
97 )),
98 }
99 }
100}
101
102enum RedisConnection {

Callers 1

startMethod · 0.80

Calls 1

ClientClass · 0.85

Tested by

no test coverage detected