Unverified Commit a32feca5 authored by Steven Allen's avatar Steven Allen Committed by GitHub

fix: 64bit align stats (#305)

fixes #302
parent 5a278ff0
......@@ -67,6 +67,10 @@ func processSettings(opts ...NetOpt) Settings {
// impl transforms the ipfs network interface, which sends and receives
// NetMessage objects, into the bitswap network interface.
type impl struct {
// NOTE: Stats must be at the top of the heap allocation to ensure 64bit
// alignment.
stats Stats
host host.Host
routing routing.ContentRouting
......@@ -79,8 +83,6 @@ type impl struct {
// inbound messages from the network are forwarded to the receiver
receiver Receiver
stats Stats
}
type streamMessageSender struct {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment