Unverified Commit 9de18049 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #478 from ipfs/fix/alignment

fix: fix alignment of stats struct in virtual network
parents c13e78b6 09ad29c0
...@@ -184,11 +184,13 @@ func (n *network) SendMessage( ...@@ -184,11 +184,13 @@ func (n *network) SendMessage(
} }
type networkClient struct { type networkClient struct {
// These need to be at the top of the struct (allocated on the heap) for alignment on 32bit platforms.
stats bsnet.Stats
local peer.ID local peer.ID
bsnet.Receiver bsnet.Receiver
network *network network *network
routing routing.Routing routing routing.Routing
stats bsnet.Stats
supportedProtocols []protocol.ID supportedProtocols []protocol.ID
} }
......
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