Skip to content

Commit 2f584ad

Browse files
committed
Rename variable
This was misnamed before. An XLogData *has* a message, but it is not itself a message.
1 parent d85e11b commit 2f584ad

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

spec/pg/replication_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class TestMessageHandler
1111
h[k] = {} of Bytes => PG::Replication::WALMessage::TupleData
1212
}
1313

14-
def received(msg : PG::Replication::XLogData, connection : PG::Replication::Connection, &)
14+
def received(data : PG::Replication::XLogData, connection : PG::Replication::Connection, &)
1515
yield
1616
connection.last_wal_byte_flushed = msg.wal_end
1717
connection.last_wal_byte_applied = msg.wal_end

src/pg/replication.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module PG::Replication
2424
# end
2525
# end
2626
# ```
27-
abstract def received(msg : PG::Replication::XLogData, connection : PG::Replication::Connection, &)
27+
abstract def received(data : PG::Replication::XLogData, connection : PG::Replication::Connection, &)
2828

2929
def received(frame)
3030
end

0 commit comments

Comments
 (0)