We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d4b737e + a9e912b commit f08bedfCopy full SHA for f08bedf
1 file changed
output/eventlog.go
@@ -35,8 +35,8 @@ func (o *EventLog) Start() error {
35
if groups == nil {
36
groups = o.bridge.Groups()
37
}
38
- o.unsubFns = make([]func(), 0, len(o.groups)*2)
39
- for _, group := range o.groups {
+ o.unsubFns = make([]func(), 0, len(groups)*2)
+ for _, group := range groups {
40
o.unsubFns = append(o.unsubFns,
41
o.bridge.OnJoin(group, func(group uint64, item iface.GroupItem) {
42
log.Printf("host %s has joined group %d", item.Address().Unmap().String(), group)
0 commit comments