Skip to content

Commit

Permalink
added example
Browse files Browse the repository at this point in the history
  • Loading branch information
mmadfox committed Aug 15, 2020
1 parent 59a7a57 commit d6b523c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *Subscriptions) GpsLocationChanged(ctx context.Context, input *models.GP

#### Options
```go
// maximum session limit for one subscriber.
// maximum sessions per subscriber.
MaxLimitSessions(limit int) Option
// non-blocking message sending.
IgnoreSlowClients() Option
Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const (
DefaultBufSize = 1
)

// MaxLimitSessions maximum session limit for one subscriber.
// MaxLimitSessions maximum sessions per subscriber.
func MaxLimitSessions(limit int) Option {
return func(c *bucketOptions) {
if limit <= 0 {
Expand Down

0 comments on commit d6b523c

Please sign in to comment.