Skip to content

Commit

Permalink
update lsn on Primary Keep Alive Message
Browse files Browse the repository at this point in the history
  • Loading branch information
louis.tian authored and porsager committed Feb 17, 2024
1 parent 5404fbd commit a5cd811
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ export default function Subscribe(postgres, options) {
function data(x) {
if (x[0] === 0x77)
parse(x.subarray(25), state, sql.options.parsers, handle, options.transform)
else if (x[0] === 0x6b && x[17])
else if (x[0] === 0x6b && x[17]) {
state.lsn = x.subarray(1, 9)
pong()
}
}

function handle(a, b) {
Expand Down

0 comments on commit a5cd811

Please sign in to comment.