jackc / pglogrepl

PostgreSQL logical replication library for Go.
MIT License
330 stars 62 forks source link

Set correct type for MessageType constants #29

Closed lovromazgon closed 2 years ago

lovromazgon commented 2 years ago

All message type constants except MessageTypeBegin were of type int32 instead MessageType, this PR fixes this.

I also took the opportunity to run go fmt and go mod tidy on the code.

jackc commented 2 years ago

No kidding. At first glance based on how iota works I would have expected the type to cascade through the entire const group. But you're correct. Thanks!