Skip to content

Commit

Permalink
add warning for old-style compensation update
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetised committed Nov 9, 2023
1 parent be69b14 commit 6231e64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/electric/lib/electric/satellite/serialization.ex
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,9 @@ defmodule Electric.Satellite.Serialization do

# TODO: Kept for compatibility with old clients that send a special update for compensation
# messages. remove once we're sure all clients have been updated.
defp op_to_change(%SatOpUpdate{row_data: row_data, old_row_data: nil, tags: tags}, columns) do
defp op_to_change(%SatOpUpdate{row_data: row_data, old_row_data: nil, tags: tags} = op, columns) do
Logger.warning("Received old-style compensation update #{inspect(op)}")

%Compensation{
record: decode_record!(row_data, columns, :allow_nulls),
tags: tags
Expand Down

0 comments on commit 6231e64

Please sign in to comment.