func (rqc *RelyQConfig) Defaults() { cfg := new(relyq.Config) if rqc != nil { *cfg = relyq.Config(*rqc) } cfg.Defaults() *rqc = RelyQConfig(*cfg) }
func (mq *MessageQueue) newQueue(endpoint string) *queue { cfg := new(relyq.Config) *cfg = relyq.Config(*mq.cfg.RelyQConfig) // Copy! cfg.Prefix = endpoint q := relyq.NewRedisJson(mq.pool, cfg) return &queue{ q: q, } }