go-zero/core/queue/util.go

13 lines
217 B
Go
Raw Normal View History

2020-08-13 17:00:53 +08:00
package queue
import "strings"
func generateName(pushers []Pusher) string {
names := make([]string, len(pushers))
for i, pusher := range pushers {
names[i] = pusher.Name()
}
return strings.Join(names, ",")
}