go-zero/core/queue/util.go
2020-07-26 17:09:05 +08:00

13 lines
222 B
Go

package queue
import "strings"
func generateName(pushers []QueuePusher) string {
names := make([]string, len(pushers))
for i, pusher := range pushers {
names[i] = pusher.Name()
}
return strings.Join(names, ",")
}