From 2a7af1b892bf568f72b2e388ebef9b117a1801c2 Mon Sep 17 00:00:00 2001 From: Tyler Treat Date: Wed, 28 Jun 2017 11:29:10 -0500 Subject: [PATCH] Move mpay field for memory alignment --- server/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/client.go b/server/client.go index f9742e5d..706ea7d9 100644 --- a/server/client.go +++ b/server/client.go @@ -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