mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 20:42:54 +00:00
Remove the last non-borrowed string from BeMessage (#1376)
This commit is contained in:
@@ -200,7 +200,7 @@ async fn handle_new_user(
|
||||
client
|
||||
.write_message_noflush(&Be::AuthenticationOk)?
|
||||
.write_message_noflush(&BeParameterStatusMessage::encoding())?
|
||||
.write_message(&Be::NoticeResponse(greeting))
|
||||
.write_message(&Be::NoticeResponse(&greeting))
|
||||
.await?;
|
||||
|
||||
// Wait for web console response (see `mgmt`)
|
||||
@@ -208,7 +208,7 @@ async fn handle_new_user(
|
||||
})
|
||||
.await?;
|
||||
|
||||
client.write_message_noflush(&Be::NoticeResponse("Connecting to database.".into()))?;
|
||||
client.write_message_noflush(&Be::NoticeResponse("Connecting to database."))?;
|
||||
|
||||
Ok(db_info)
|
||||
}
|
||||
|
||||
@@ -425,7 +425,7 @@ pub enum BeMessage<'a> {
|
||||
ReadyForQuery,
|
||||
RowDescription(&'a [RowDescriptor<'a>]),
|
||||
XLogData(XLogDataBody<'a>),
|
||||
NoticeResponse(String),
|
||||
NoticeResponse(&'a str),
|
||||
KeepAlive(WalSndKeepAlive),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user