// Take the message and forward it to the router. func (entry *MessageEntry) HandleMessage(msg *guble.Message) error { txCallback := func(msgId uint64) []byte { msg.Id = msgId msg.PublishingTime = time.Now().Format(time.RFC3339) return msg.Bytes() } if err := entry.messageStore.StoreTx(msg.Path.Partition(), txCallback); err != nil { guble.Err("error storing message in partition %v: %v", msg.Path.Partition(), err) return err } return entry.router.HandleMessage(msg) }