func (c *context) PutMessages(topic *nsqd.Topic, msgs []*nsqd.Message) (nsqd.MessageID, nsqd.BackendOffset, int32, error) { if c.nsqdCoord == nil { id, offset, rawSize, _, _, err := topic.PutMessages(msgs) return id, offset, rawSize, err } return c.nsqdCoord.PutMessagesToCluster(topic, msgs) }