Skip to content

Commit

Permalink
fix option comments
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jul 20, 2024
1 parent feec0d0 commit aa2c903
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ func WithDisconnect(disconnect *Disconnect) DisconnectOption {
}
}

// WithDisconnectClient allows to set Client.
// WithDisconnectClient allows to set DisconnectOptions.ClientID.
func WithDisconnectClient(clientID string) DisconnectOption {
return func(opts *DisconnectOptions) {
opts.ClientID = clientID
}
}

// WithDisconnectClientWhitelist allows to set ClientWhitelist.
// WithDisconnectClientWhitelist allows to set DisconnectOptions.ClientWhitelist.
func WithDisconnectClientWhitelist(whitelist []string) DisconnectOption {
return func(opts *DisconnectOptions) {
opts.ClientWhitelist = whitelist
Expand Down Expand Up @@ -219,7 +219,7 @@ func WithSince(sp *StreamPosition) HistoryOption {
}
}

// WithSince allows to set HistoryOptions.Since option.
// WithReverse allows to set HistoryOptions.Reverse option.
func WithReverse(reverse bool) HistoryOption {
return func(opts *HistoryOptions) {
opts.Reverse = reverse
Expand All @@ -235,7 +235,7 @@ type ChannelsOptions struct {
// ChannelsOption is a type to represent various Channels call options.
type ChannelsOption func(options *ChannelsOptions)

// WithLimit allows to set HistoryOptions.Limit.
// WithPattern allows to set ChannelsOptions.Pattern.
func WithPattern(pattern string) ChannelsOption {
return func(opts *ChannelsOptions) {
opts.Pattern = pattern
Expand Down

0 comments on commit aa2c903

Please sign in to comment.