Skip to content

Commit

Permalink
Use Message.encode(proto) instead of proto.to_proto
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Feb 16, 2024
1 parent 21850f6 commit 861fdfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sass/compiler/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ def id

def send_message0(...)
inbound_message = EmbeddedProtocol::InboundMessage.new(...)
@stream.send_proto(0, inbound_message.to_proto)
@stream.send_proto(0, EmbeddedProtocol::InboundMessage.encode(inbound_message))
end

def send_message(...)
inbound_message = EmbeddedProtocol::InboundMessage.new(...)
@stream.send_proto(id, inbound_message.to_proto)
@stream.send_proto(id, EmbeddedProtocol::InboundMessage.encode(inbound_message))
end
end

Expand Down

0 comments on commit 861fdfb

Please sign in to comment.