Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
CapacitorSet committed Jul 10, 2018
1 parent 374fad9 commit 84c3e19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions pushers/eventbus/eventbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ func New() *EventBus {
}

// Subscribe adds the giving channel to the list of subscribers for the giving bus.
func (eb *EventBus) Subscribe(channel pushers.Channel) error {
func (eb *EventBus) Subscribe(channel pushers.Channel) {
eb.subscribers = append(eb.subscribers, channel)
return nil
}

// Send deliverers the slice of messages to all subscribers.
Expand Down
4 changes: 1 addition & 3 deletions server/honeytrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,7 @@ func (hc *Honeytrap) Run(ctx context.Context) {
channel = pushers.FilterChannel(channel, pushers.RegexFilterFunc("service", x.Services))
}

if err := hc.bus.Subscribe(channel); err != nil {
log.Error("Could not add channel %s to bus: %s", name, err.Error())
}
hc.bus.Subscribe(channel)
}
}

Expand Down

0 comments on commit 84c3e19

Please sign in to comment.