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-unixfs
Commits
b2bd6848
Commit
b2bd6848
authored
Oct 13, 2014
by
Jeromy
Committed by
Juan Batiz-Benet
Oct 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix core NewNode not setting network field, and added new json serializer for diagnostics
parent
be5f9769
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
core/core.go
core/core.go
+3
-0
diagnostics/diag.go
diagnostics/diag.go
+1
-1
diagnostics/message.pb.go
diagnostics/message.pb.go
+3
-3
diagnostics/message.proto
diagnostics/message.proto
+1
-1
No files found.
core/core.go
View file @
b2bd6848
...
...
@@ -108,6 +108,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (*IpfsNode, error) {
route
*
dht
.
IpfsDHT
exchangeSession
exchange
.
Interface
diagnostics
*
diag
.
Diagnostics
network
inet
.
Network
)
if
online
{
...
...
@@ -135,6 +136,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (*IpfsNode, error) {
if
err
!=
nil
{
return
nil
,
err
}
network
=
net
diagnostics
=
diag
.
NewDiagnostics
(
local
,
net
,
diagService
)
diagService
.
SetHandler
(
diagnostics
)
...
...
@@ -173,6 +175,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (*IpfsNode, error) {
Routing
:
route
,
Namesys
:
ns
,
Diagnostics
:
diagnostics
,
Network
:
network
,
},
nil
}
...
...
diagnostics/diag.go
View file @
b2bd6848
package
diagnostic
package
diagnostic
s
import
(
"bytes"
...
...
diagnostics/message.pb.go
View file @
b2bd6848
...
...
@@ -3,7 +3,7 @@
// DO NOT EDIT!
/*
Package diagnostic is a generated protocol buffer package.
Package diagnostic
s
is a generated protocol buffer package.
It is generated from these files:
message.proto
...
...
@@ -11,9 +11,9 @@ It is generated from these files:
It has these top-level messages:
Message
*/
package
diagnostic
package
diagnostic
s
import
proto
"
github.com/jbenet/go-ipfs/Godeps/_workspace/src/
code.google.com/p/goprotobuf/proto"
import
proto
"code.google.com/p/goprotobuf/proto"
import
math
"math"
// Reference imports to suppress errors if they are not otherwise used.
...
...
diagnostics/message.proto
View file @
b2bd6848
package
diagnostic
;
package
diagnostic
s
;
message
Message
{
required
string
DiagID
=
1
;
...
...
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