commit | 6a6df1ea58d1a78750d20e6e9c2bd6da115c8ef5 | [log] [tgz] |
---|---|---|
author | Takeru Ohta <phjgt308@gmail.com> | Sat Jan 18 13:20:20 2020 +0900 |
committer | Takeru Ohta <phjgt308@gmail.com> | Sat Jan 18 13:20:20 2020 +0900 |
tree | b2dcc998a15488aaec39e9197663e4cc78bcee39 | |
parent | 0cf27dc6a1076b46975dffec71941f993bde3c8d [diff] |
Remove deprecated field
An Erlang implementation of Thrift protocol.
Body = #thrift_protocol_struct{ fields = #{1 => true, 2 => {i8, -1}} }, Message = #thrift_protocol_message{ method_name = <<"foo">>, message_type = call, sequence_id = 0, body = Body }, Encoded = list_to_binary(thrift_protocol:encode_message(Message, compact)), <<130,33,0,3,102,111,111,17,19,255,0>> = Encoded, {Decoded, <<>>} = thrift_protocol:decode_message(Encoded, compact), Message = Decoded.