Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

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 9698a72 + baf7d1a commit d204016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 d204016

Please sign in to comment.