Skip to content

Commit

Permalink
Changed to fit new structure of ari module
Browse files Browse the repository at this point in the history
  • Loading branch information
mtryfoss committed Jul 3, 2020
1 parent 8bee712 commit 56edf95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/bus/bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (b *subBus) Close() {
}

// Used as callback from stdbus
func (b *subBus) Cancel(s ari.Subscription) {
func (b *subBus) Cancel(s interface{}) {
b.mu.Lock()
for i, si := range b.subs {
if s == si {
Expand All @@ -118,7 +118,7 @@ func (b *subBus) Send(e ari.Event) {

func (b *subBus) Subscribe(key *ari.Key, eTypes ...string) ari.Subscription {
sub := b.bus.Subscribe(key, eTypes...)
sub.SetCallback(b.Cancel)
sub.AddCancelCallback(b.Cancel)
b.mu.Lock()
b.subs = append(b.subs, sub)
b.mu.Unlock()
Expand Down

0 comments on commit 56edf95

Please sign in to comment.