Skip to content

Commit

Permalink
Merge pull request #116 from elmaxxo/elmaxxo/fix/there-is-no-SSLReque…
Browse files Browse the repository at this point in the history
…st-in-frontend-messages

fix: there is no SSLRequest in frontend messages
  • Loading branch information
sunng87 committed Oct 20, 2023
2 parents 74ed39e + 0811be2 commit aad10d5
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 aad10d5

Please sign in to comment.