Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
9de18049
Unverified
Commit
9de18049
authored
Apr 29, 2021
by
Steven Allen
Committed by
GitHub
Apr 29, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #478 from ipfs/fix/alignment
fix: fix alignment of stats struct in virtual network
parents
c13e78b6
09ad29c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
testnet/virtual.go
testnet/virtual.go
+3
-1
No files found.
testnet/virtual.go
View file @
9de18049
...
...
@@ -184,11 +184,13 @@ func (n *network) SendMessage(
}
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
bsnet
.
Receiver
network
*
network
routing
routing
.
Routing
stats
bsnet
.
Stats
supportedProtocols
[]
protocol
.
ID
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment