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-dms3
Commits
795b3cc4
Commit
795b3cc4
authored
Nov 04, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add muxer type to json output
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
4a029c73
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
core/commands/swarm.go
core/commands/swarm.go
+6
-0
No files found.
core/commands/swarm.go
View file @
795b3cc4
...
...
@@ -88,6 +88,11 @@ var swarmPeersCmd = &cmds.Command{
Peer: pid.Pretty(),
}
swcon, ok := c.(*swarm.Conn)
if ok {
ci.Muxer = fmt.Sprintf("%T", swcon.StreamConn().Conn())
}
if verbose || latency {
ci.Latency = n.Peerstore.LatencyEWMA(pid).String()
}
...
...
@@ -147,6 +152,7 @@ type connInfo struct {
Addr string
Peer string
Latency string
Muxer string
Streams []streamInfo
}
...
...
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