Skip to content

Commit

Permalink
fix: there is no SSLRequest in frontend messages
Browse files Browse the repository at this point in the history
  • Loading branch information
elmaxxo committed Oct 19, 2023
1 parent 74ed39e commit 0811be2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/messages/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ pub mod terminate;
#[derive(Debug)]
pub enum PgWireFrontendMessage {
Startup(startup::Startup),
SslRequest(startup::SslRequest),
PasswordMessageFamily(startup::PasswordMessageFamily),

Query(simplequery::Query),
Expand All @@ -97,6 +98,7 @@ impl PgWireFrontendMessage {
pub fn encode(&self, buf: &mut BytesMut) -> PgWireResult<()> {
match self {
Self::Startup(msg) => msg.encode(buf),
Self::SslRequest(msg) => msg.encode(buf),
Self::PasswordMessageFamily(msg) => msg.encode(buf),

Self::Query(msg) => msg.encode(buf),
Expand Down

0 comments on commit 0811be2

Please sign in to comment.