1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00

internal/redis/channel.go: Make Append() accept a variadic number of parameters.

This commit is contained in:
Henrik Hautakoski 2023-01-12 15:02:16 +01:00
parent 0e19f6d146
commit 51af80d3aa

View file

@ -13,8 +13,8 @@ type ChannelInterface interface {
// Standard channel. Just a wrapper around string slice
type Channel []string
func (c *Channel) Append(name string) {
*c = append(*c, name)
func (c *Channel) Append(name ...string) {
*c = append(*c, name...)
}
func (c Channel) String() string {