func (m *M) completeNotCancelled(nc *pqueue.OrderNode) { ncm := msg.Message{} nc.CopyTo(&ncm) ncm.Kind = msg.NOT_CANCELLED m.Out.Write(ncm) }
func completeNotCancelled(out chan<- *msg.Message, nc *pqueue.OrderNode) { ncm := &msg.Message{} nc.CopyTo(ncm) ncm.Kind = msg.NOT_CANCELLED out <- ncm }
func (m *M) completeCancelled(c *pqueue.OrderNode) { cm := msg.Message{} c.CopyTo(&cm) cm.Kind = msg.CANCELLED m.Out.Write(cm) }
func completeCancelled(out chan<- *msg.Message, c *pqueue.OrderNode) { cm := &msg.Message{} c.CopyTo(cm) cm.Kind = msg.CANCELLED out <- cm }