wagslane / go-rabbitmq

A wrapper of streadway/amqp that provides reconnection logic and sane defaults
https://blog.boot.dev/golang/connecting-to-rabbitmq-in-golang-easy/
MIT License
785 stars 128 forks source link

panic since v0.14.0 #169

Closed gnuletik closed 3 months ago

gnuletik commented 3 months ago
panic: runtime error: invalid memory address or nil pointer dereference

handler.Mu is never initialized:

https://github.com/wagslane/go-rabbitmq/blob/8e18cd3f8a038987656b793e529d5331d0b107ad/consume.go#L36

astromechza commented 3 months ago

Fix PR up here for now https://github.com/wagslane/go-rabbitmq/pull/170

wagslane commented 3 months ago

Fixed in v0.14.1