chore(proto): crate formatting
This commit is contained in:
parent
505f59b354
commit
a08376766c
18 changed files with 103 additions and 75 deletions
|
|
@ -17,7 +17,10 @@ pub async fn do_client_handshake(
|
|||
writer.flush().await?;
|
||||
|
||||
let auth = reader.read_proto().await?;
|
||||
if !matches!(auth, BackendMessage::AuthenticationOk(AuthenticationOkData { status: 0 })) {
|
||||
if !matches!(
|
||||
auth,
|
||||
BackendMessage::AuthenticationOk(AuthenticationOkData { status: 0 })
|
||||
) {
|
||||
return Err(ClientHandshakeError::UnexpectedAuthResponse(auth));
|
||||
}
|
||||
|
||||
|
|
@ -32,4 +35,4 @@ pub async fn do_client_handshake(
|
|||
}
|
||||
|
||||
HandshakeResponse::try_from(messages.as_slice())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue