From 51af80d3aaf571a02c04018305e87616915419a3 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 12 Jan 2023 15:02:16 +0100 Subject: [PATCH] internal/redis/channel.go: Make Append() accept a variadic number of parameters. --- internal/redis/channel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/redis/channel.go b/internal/redis/channel.go index 77b4350..b80951a 100644 --- a/internal/redis/channel.go +++ b/internal/redis/channel.go @@ -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 {