Recreate webhooks when they go missing, reuse older webhooks, and initiate connections to Redis cluster
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
use deadpool_redis::{
|
||||
Runtime,
|
||||
cluster::{Config, CreatePoolError, Pool},
|
||||
};
|
||||
|
||||
pub fn init(urls: Vec<String>) -> Result<Pool, CreatePoolError> {
|
||||
Config::from_urls(urls).create_pool(Some(Runtime::Tokio1))
|
||||
}
|
||||
Reference in New Issue
Block a user