Skip to content

Commit

Permalink
Fix invalid events parsing (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson authored Jun 24, 2024
1 parent 81b1875 commit e1ab6b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Invalid events parsing.

## [2.4.4] - 2024-04-09
### Fixed

- Invalid payload parsing in anti entropy step.
- Invalid payload parsing in anti entropy step.

## [2.4.3] - 2024-01-29

Expand Down
6 changes: 3 additions & 3 deletions membership/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ function events.unpack(event)
end
return {
uri = tostring(event[1]),
status = tonumber(event[2]),
incarnation = tonumber(event[3]),
status = tonumber(event[2]) or opts.DEAD,
incarnation = tonumber(event[3]) or 1,
payload = payload,
ttl = event[5],
ttl = tonumber(event[5]) or 0,
}
end

Expand Down

0 comments on commit e1ab6b1

Please sign in to comment.