From c8e7d98fd04699fdc35ad6c78635a9744b43ad23 Mon Sep 17 00:00:00 2001 From: onur1 Date: Sat, 8 Jan 2022 11:56:53 +0100 Subject: Do not panic --- writer.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/writer.go b/writer.go index d1a4a8b..fdfa5ec 100644 --- a/writer.go +++ b/writer.go @@ -36,10 +36,6 @@ func (w *Writer) WriteMessage(messages ...*Message) error { } func send(id int, ch rune, data []byte) []byte { - if id > maxID { - panic("binproto: ID too big") - } - header := uint64(id)<<4 | uint64(ch) length := len(data) + encodingLength(header) payload := make([]byte, encodingLength(uint64(length))+length) -- cgit v1.3.1