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
a32feca5
Unverified
Commit
a32feca5
authored
Mar 17, 2020
by
Steven Allen
Committed by
GitHub
Mar 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 64bit align stats (#305)
fixes #302
parent
5a278ff0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
network/ipfs_impl.go
network/ipfs_impl.go
+4
-2
No files found.
network/ipfs_impl.go
View file @
a32feca5
...
...
@@ -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
{
...
...
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