Skip to content

Commit f08bedf

Browse files
authored
Merge pull request #8 from SenseUnit/fix_evlog
event log: fix group config
2 parents d4b737e + a9e912b commit f08bedf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

output/eventlog.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ func (o *EventLog) Start() error {
3535
if groups == nil {
3636
groups = o.bridge.Groups()
3737
}
38-
o.unsubFns = make([]func(), 0, len(o.groups)*2)
39-
for _, group := range o.groups {
38+
o.unsubFns = make([]func(), 0, len(groups)*2)
39+
for _, group := range groups {
4040
o.unsubFns = append(o.unsubFns,
4141
o.bridge.OnJoin(group, func(group uint64, item iface.GroupItem) {
4242
log.Printf("host %s has joined group %d", item.Address().Unmap().String(), group)

0 commit comments

Comments
 (0)