mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-22 07:30:37 +00:00
Fix a bunch of linter warnings
This commit is contained in:
@@ -271,7 +271,6 @@ fn extract_pageserver_conninfo_from_guc(
|
||||
PageserverConnectionInfo {
|
||||
shards: pageserver_connstring_guc
|
||||
.split(',')
|
||||
.into_iter()
|
||||
.enumerate()
|
||||
.map(|(i, connstr)| {
|
||||
(
|
||||
|
||||
@@ -83,13 +83,13 @@ fn acquire_lsn_lease_with_retry(
|
||||
|
||||
spec.pageserver_conninfo
|
||||
.shards
|
||||
.iter()
|
||||
.map(|(_shardno, conninfo)| {
|
||||
.values()
|
||||
.map(|conninfo| {
|
||||
// FIXME: for now, this requires a libpq connection, the grpc API doesn't
|
||||
// have a "lease" method.
|
||||
let connstr = conninfo.libpq_url.as_ref().expect("missing libpq URL");
|
||||
|
||||
let mut config = postgres::Config::from_str(&connstr).expect("Invalid connstr");
|
||||
let mut config = postgres::Config::from_str(connstr).expect("Invalid connstr");
|
||||
if let Some(storage_auth_token) = &spec.storage_auth_token {
|
||||
config.password(storage_auth_token.clone());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user