Skip to content

Commit ddafcb2

Browse files
authored
Merge pull request #276 from nickysemenza/allow-unknown-protocol-tags
2 parents fbb660d + 23ac0f4 commit ddafcb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

protocol/protocol.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,8 @@ func (o *Operation) UnmarshalBinary(body []byte) error {
643643
case TagCustomFuncName:
644644
o.CustomFuncName = string(data)
645645
default:
646-
return fmt.Errorf("unknown tag: %02x", tag)
646+
// Silently ignore any unknown tags (to allow for new tags to be gradually added to the protocol).
647+
continue
647648
}
648649

649650
// only use tag as an index in seen after we've validated that it's a tag

0 commit comments

Comments
 (0)