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:
parent
0e19f6d146
commit
51af80d3aa
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue