mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 18:50:41 -07:00
Move mpay field for memory alignment
This commit is contained in:
@@ -87,6 +87,7 @@ func (cf *clientFlag) clear(c clientFlag) {
|
||||
type client struct {
|
||||
// Here first because of use of atomics, and memory alignment.
|
||||
stats
|
||||
mpay int64
|
||||
mu sync.Mutex
|
||||
typ int
|
||||
cid uint64
|
||||
@@ -94,7 +95,6 @@ type client struct {
|
||||
opts clientOpts
|
||||
start time.Time
|
||||
nc net.Conn
|
||||
mpay int64
|
||||
ncs string
|
||||
bw *bufio.Writer
|
||||
srv *Server
|
||||
|
||||
Reference in New Issue
Block a user