Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistence whilst awaiting initial connection #333

Merged
merged 2 commits into from Aug 29, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions client.go
Expand Up @@ -223,8 +223,8 @@ func (c *client) Connect() Token {
return t
}

c.obound = make(chan *PacketAndToken, c.options.MessageChannelDepth)
c.oboundP = make(chan *PacketAndToken, c.options.MessageChannelDepth)
c.obound = make(chan *PacketAndToken)
c.oboundP = make(chan *PacketAndToken)
c.ibound = make(chan packets.ControlPacket)

c.persist.Open()
Expand Down
6 changes: 2 additions & 4 deletions options.go
Expand Up @@ -347,10 +347,8 @@ func (o *ClientOptions) SetConnectRetry(a bool) *ClientOptions {
return o
}

// SetMessageChannelDepth sets the size of the internal queue that holds messages while the
// client is temporairily offline, allowing the application to publish when the client is
// reconnecting. This setting is only valid if AutoReconnect is set to true, it is otherwise
// ignored.
// SetMessageChannelDepth DEPRECATED The value set here no longer has any effect, this function
// remains so the API is not altered.
func (o *ClientOptions) SetMessageChannelDepth(s uint) *ClientOptions {
o.MessageChannelDepth = s
return o
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.