diff options
| author | onur1 <onur1@onurgunduz.com> | 2022-01-08 11:56:53 +0100 |
|---|---|---|
| committer | onur1 <onur1@onurgunduz.com> | 2022-01-08 11:56:53 +0100 |
| commit | c8e7d98fd04699fdc35ad6c78635a9744b43ad23 (patch) | |
| tree | fd708c1d5020f09f01cb4a345d6a5d3fe516923b | |
| parent | 68a6772b801c42db4b679fefd3691e6933f2ad74 (diff) | |
| download | muxer-c8e7d98fd04699fdc35ad6c78635a9744b43ad23.tar.gz muxer-c8e7d98fd04699fdc35ad6c78635a9744b43ad23.zip | |
Do not panic
| -rw-r--r-- | writer.go | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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) |
