Correctly initialize subscribed topics list
This commit is contained in:
parent
06f1d59b3f
commit
baf46716bd
|
@ -66,6 +66,7 @@ type TwitchPubSub struct {
|
||||||
func NewTwitchPubSub() *TwitchPubSub {
|
func NewTwitchPubSub() *TwitchPubSub {
|
||||||
t := &TwitchPubSub{
|
t := &TwitchPubSub{
|
||||||
responseCh: make(chan *twitchMessage),
|
responseCh: make(chan *twitchMessage),
|
||||||
|
SubscribedTopics: make([]string, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
return t
|
return t
|
||||||
|
|
Loading…
Reference in New Issue