Skip to content

Commit

Permalink
Update the comment in this clause of send
Browse files Browse the repository at this point in the history
Make the decision to ignore pack_mode here clear to future authors
  • Loading branch information
ihumanable committed Feb 28, 2023
1 parent 850a4af commit 9e49cb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/manifold.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ defmodule Manifold do
:offload ->
# To maintain linearizability guaranteed by send/2, we have to send
# it to the sender process, even for a single receiving pid.
#
# Since we know we are only sending to a single pid, there's no
# performance benefit to packing the message, so we will always send as
# raw etf.
Sender.send(current_sender(), current_partitioner(), [pid], message, :etf)

nil ->
Expand Down

0 comments on commit 9e49cb6

Please sign in to comment.