mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:10:19 +00:00
NOISSUE - Add message error type to handle Writer errors (#200)
* initial implementation Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * update tests Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * update postgres writer Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * fix readers tests Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * address comments Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * fix senML naming Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * remove logger from service Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * fix failing linter Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * update messaging to NACK Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * remove error wrapping Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * remove message in logging Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> * writer add msg error Signed-off-by: Arvindh <arvindh91@gmail.com> * revert the postgres writer changes Signed-off-by: Arvindh <arvindh91@gmail.com> * dependency: update supermq version Signed-off-by: Arvindh <arvindh91@gmail.com> --------- Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> Signed-off-by: Arvindh <arvindh91@gmail.com> Co-authored-by: nyagamunene <stevenyaga2014@gmail.com>
This commit is contained in:
@@ -170,7 +170,6 @@ func main() {
|
||||
Topic: brokers.AllTopic,
|
||||
DeliveryPolicy: messaging.DeliverAllPolicy,
|
||||
Handler: consumer,
|
||||
AckErr: true,
|
||||
}
|
||||
if err := pubSub.Subscribe(ctx, subCfg); err != nil {
|
||||
logger.Error(fmt.Sprintf("failed to subscribe to message broker: %s", err))
|
||||
|
||||
Reference in New Issue
Block a user