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

Memory align on 32bit arch #46

Merged
merged 1 commit into from
Dec 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ type serverSub struct {
// Close method to clean up state when you don't need client instance
// anymore.
type Client struct {
msgID uint32
futureID uint64
mu sync.RWMutex
url string
encoding protocol.Type
Expand All @@ -50,7 +52,6 @@ type Client struct {
version string
connectData protocol.Raw
transport transport
msgID uint32
status int
id string
subs map[string]*Subscription
Expand All @@ -70,7 +71,6 @@ type Client struct {
delayPing chan struct{}
reconnectCh chan struct{}
closeCh chan struct{}
futureID uint64
connectFutures map[uint64]connectFuture
hasBeenDisconnected bool
cbQueue *cbQueue
Expand Down