diff --git a/src/squirrel/internal/database/postgres_protocol.gleam b/src/squirrel/internal/database/postgres_protocol.gleam index fb08194..6c30908 100644 --- a/src/squirrel/internal/database/postgres_protocol.gleam +++ b/src/squirrel/internal/database/postgres_protocol.gleam @@ -727,7 +727,7 @@ pub fn decode_frontend_packet( <<8:32, 1234:16, 5680:16, next:bytes>> -> Ok(#(FeGssEncRequest, next)) // not sure if there's a way to use the `protocol_version` constant here <> -> - decode_startup_message(next, length - 8, []) + decode_startup_message(next, length - 8) <> -> { let len = length - 4 case tail { @@ -766,7 +766,7 @@ pub fn decode_frontend_message( } } -fn decode_startup_message(binary, size, _result) { +fn decode_startup_message(binary, size) { case binary { <> -> decode_startup_message_pairs(data, [])