mirror of
https://github.com/postmannen/ctrl.git
synced 2025-01-07 04:49:17 +00:00
removed subscribesync pub with NACK msgs
This commit is contained in:
parent
b8d21420ed
commit
31ce2e978c
1 changed files with 13 additions and 0 deletions
13
process.go
13
process.go
|
@ -215,6 +215,19 @@ func (p process) messageDeliverNats(natsMsgPayload []byte, natsMsgHeader nats.He
|
||||||
Header: natsMsgHeader,
|
Header: natsMsgHeader,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
if p.subject.CommandOrEvent == CommandNACK || p.subject.CommandOrEvent == EventNACK {
|
||||||
|
err := natsConn.PublishMsg(msg)
|
||||||
|
if err != nil {
|
||||||
|
er := fmt.Errorf("error: nats publish of hello failed: %v", err)
|
||||||
|
log.Printf("%v\n", er)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
p.processes.metrics.promNatsDeliveredTotal.Inc()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// The SubscribeSync used in the subscriber, will get messages that
|
// The SubscribeSync used in the subscriber, will get messages that
|
||||||
// are sent after it started subscribing.
|
// are sent after it started subscribing.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue