@@ -193,7 +193,7 @@ pub struct ConfigurationInner {
193
193
fn validate_config_complete ( config : & ConfigurationInner ) -> Result < ( ) , ValidationError > {
194
194
match config. cache_type {
195
195
CacheType :: None | CacheType :: Memory => { }
196
- CacheType :: Redis | CacheType :: RedisClusterUnpooled => {
196
+ CacheType :: Redis | CacheType :: RedisCluster => {
197
197
if config. cache_dsn ( ) . is_none ( ) {
198
198
return Err ( ValidationError {
199
199
code : Cow :: from ( "missing field" ) ,
@@ -266,9 +266,7 @@ impl ConfigurationInner {
266
266
CacheType :: None => CacheBackend :: None ,
267
267
CacheType :: Memory => CacheBackend :: Memory ,
268
268
CacheType :: Redis => CacheBackend :: Redis ( self . cache_dsn ( ) . expect ( err) ) ,
269
- CacheType :: RedisClusterUnpooled => {
270
- CacheBackend :: RedisClusterUnpooled ( self . cache_dsn ( ) . expect ( err) )
271
- }
269
+ CacheType :: RedisCluster => CacheBackend :: RedisCluster ( self . cache_dsn ( ) . expect ( err) ) ,
272
270
}
273
271
}
274
272
}
@@ -305,7 +303,7 @@ pub enum CacheBackend<'a> {
305
303
None ,
306
304
Memory ,
307
305
Redis ( & ' a str ) ,
308
- RedisClusterUnpooled ( & ' a str ) ,
306
+ RedisCluster ( & ' a str ) ,
309
307
}
310
308
311
309
#[ derive( Clone , Debug , Deserialize ) ]
@@ -337,7 +335,7 @@ pub enum QueueType {
337
335
pub enum CacheType {
338
336
Memory ,
339
337
Redis ,
340
- RedisClusterUnpooled ,
338
+ RedisCluster ,
341
339
None ,
342
340
}
343
341
0 commit comments