Skip to content

Commit

Permalink
Merge pull request #45 from libp2p/feat/event-bus-signature
Browse files Browse the repository at this point in the history
Return error in Emit
  • Loading branch information
bigs authored Aug 6, 2019
2 parents 20123ca + 4527fe0 commit 9d9ab90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/event/bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Emitter interface {
// calls to Emit will block.
//
// Calling this function with wrong event type will cause a panic.
Emit(evt interface{})
Emit(evt interface{}) error
}

// Subscription represents a subscription to one or multiple event types.
Expand Down

0 comments on commit 9d9ab90

Please sign in to comment.