Skip to content
Snippets Groups Projects
Commit e1ac1a5a authored by capossele's avatar capossele
Browse files

:zap: adds Type check

parent 1303b939
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,9 @@ func configureEvents() {
cachedMessageMetadata.Release()
cachedMessage.Consume(func(msg *message.Message) {
if msg.Payload().Type() != payload.Type {
return
}
if len(msg.Payload().Bytes()) < header.Length {
return
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment