Skip to content

Commit

Permalink
Memory align on 32bit arch (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjtdy888 authored Dec 31, 2020
1 parent bf91761 commit 98cf27f
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 98cf27f

Please sign in to comment.