mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-30 19:40:39 +00:00
one more simple_query
This commit is contained in:
committed by
Conrad Ludgate
parent
209c720142
commit
18370b1e25
@@ -134,7 +134,7 @@ fn try_acquire_lsn_lease(
|
||||
let mut client = config.connect(NoTls)?;
|
||||
let cmd = format!("lease lsn {} {} {} ", tenant_shard_id, timeline_id, lsn);
|
||||
let res = client.simple_query(&cmd)?;
|
||||
let msg = match res.first() {
|
||||
let msg = match res.get(1) {
|
||||
Some(msg) => msg,
|
||||
None => bail!("empty response"),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user