mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
13 lines
217 B
Go
13 lines
217 B
Go
|
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, ",")
|
||
|
}
|