Merge pull request #4304 from guggero/peer-alignment

peer: fix struct alignment
This commit is contained in:
Wilmer Paulino 2020-05-21 19:05:21 +00:00 committed by GitHub
commit 77a4bc97a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,8 +114,6 @@ type peer struct {
started int32
disconnect int32
cfg *Config
// The following fields are only meant to be used *atomically*
bytesReceived uint64
bytesSent uint64
@ -130,6 +128,8 @@ type peer struct {
// our last ping message. To be used atomically.
pingLastSend int64
cfg *Config
connReq *connmgr.ConnReq
conn net.Conn