mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-22 17:06:29 +00:00
Fixed linter errors
This commit is contained in:
@@ -773,7 +773,7 @@ pub enum DefaultShard {
|
||||
Shard(usize),
|
||||
Random,
|
||||
RandomHealthy,
|
||||
Fail
|
||||
Fail,
|
||||
}
|
||||
impl Default for DefaultShard {
|
||||
fn default() -> Self {
|
||||
|
||||
@@ -30,7 +30,7 @@ pub enum Error {
|
||||
QueryRouterError(String),
|
||||
InvalidShardId(usize),
|
||||
PreparedStatementError,
|
||||
NoShardSelected
|
||||
NoShardSelected,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
|
||||
@@ -719,8 +719,8 @@ impl ConnectionPool {
|
||||
.partial_cmp(&a.error_count.load(Ordering::Relaxed))
|
||||
.unwrap()
|
||||
});
|
||||
},
|
||||
DefaultShard::Fail => return Err(Error::NoShardSelected)
|
||||
}
|
||||
DefaultShard::Fail => return Err(Error::NoShardSelected),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user