Skip to content

Commit

Permalink
fix: hep marshal
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovikov committed Oct 31, 2024
1 parent f30c25b commit e02046f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion publish/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ func (pub *Publisher) Start(pq chan *decoder.Packet) {
if err == nil {
msg.NodePW = config.Cfg.HepNodePW
pkt.Payload, err = msg.Marshal()
if err != nil {
if err == nil {
pub.output(pkt.Payload)
} else {
logp.Warn("Bad HEP marshal: %v", err)
}
} else {
logp.Warn("Bad HEP: %v", err)
Expand Down

0 comments on commit e02046f

Please sign in to comment.