Skip to content

Commit

Permalink
Improve comment of Subscribe method
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Oct 29, 2023
1 parent a785445 commit 3b80a7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spine/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func (r *events) subscribe(level EventHandlerLevel, handler EventHandler) error

// Subscribe to message events and handle them in
// the Eventhandler interface implementation
//
// returns an error if EventHandlerLevelCore is used as
// that is only allowed for internal use
func (r *events) Subscribe(level EventHandlerLevel, handler EventHandler) error {
if level == EventHandlerLevelCore {
return errors.New("This level is restricted to the EEBUS core implenentation!")
Expand Down

0 comments on commit 3b80a7a

Please sign in to comment.