Skip to content

Commit

Permalink
minor clean ups in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Nov 14, 2020
1 parent a174e4a commit bf91761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var (
// that server does not allow subscribing to the same channel twice for
// the same connection.
ErrDuplicateSubscription = errors.New("duplicate subscription")
// ErrSubscribeClosed returned if subscription was closed
// for subscribe to this channel should use Client's NewSubscription
ErrSubscriptionClosed = errors.New("subscription is closed")
// ErrSubscribeClosed returned if Subscription was closed.
ErrSubscriptionClosed = errors.New("subscription closed")
)
5 changes: 2 additions & 3 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (s *Subscription) OnSubscribeError(handler SubscribeErrorHandler) {
s.events.onSubscribeError = handler
}

// Describe different states of Subscription.
// Different states of Subscription.
const (
UNSUBSCRIBED = iota
SUBSCRIBING
Expand All @@ -126,8 +126,7 @@ const (
SUBCLOSED
)

// Subscription represents client subscription to channel. Subscription object
//
// Subscription represents client subscription to channel.
type Subscription struct {
futureID uint64
mu sync.Mutex
Expand Down

0 comments on commit bf91761

Please sign in to comment.