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