1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

app/ship_processor.go: in encodeQueue() should check for err == nil, not err != nil.

This commit is contained in:
Henrik Hautakoski 2023-02-21 10:45:17 +01:00
parent 315d7e19c9
commit 6ca9f408f9

View file

@ -56,7 +56,7 @@ func (processor *ShipProcessor) queueMessage(channel transport.ChannelInterface,
}
func (processor *ShipProcessor) encodeQueue(channel transport.ChannelInterface, v interface{}) bool {
if payload, err := processor.encode(v); err != nil {
if payload, err := processor.encode(v); err == nil {
return processor.queueMessage(channel, payload)
}
return false