@@ -64,10 +64,10 @@ const (
64
64
65
65
var swarmPeeringCmd = & cmds.Command {
66
66
Helptext : cmds.HelpText {
67
- Tagline : "modify the peering service ." ,
67
+ Tagline : "Modify the peering subsystem ." ,
68
68
ShortDescription : `
69
- 'ipfs swarm peering' is a tool to manupulate the peering service .
70
- Peers in the peering service is maintained to be connected, reconnected
69
+ 'ipfs swarm peering' manages the peering subsystem .
70
+ Peers in the peering subsystem is maintained to be connected, reconnected
71
71
on disconnect with a back-off.
72
72
` ,
73
73
},
@@ -80,13 +80,13 @@ on disconnect with a back-off.
80
80
81
81
var swarmPeeringAddCmd = & cmds.Command {
82
82
Helptext : cmds.HelpText {
83
- Tagline : "add peers into the peering service ." ,
83
+ Tagline : "Add peers into the peering subsystem ." ,
84
84
ShortDescription : `
85
- 'ipfs swarm peering add' adds peers into the peering service .
85
+ 'ipfs swarm peering add' will add the new address to the peering subsystem as one that should always be connected to .
86
86
` ,
87
87
},
88
88
Arguments : []cmds.Argument {
89
- cmds .StringArg ("address" , true , true , "address of peer to add into the PeeringService " ),
89
+ cmds .StringArg ("address" , true , true , "address of peer to add into the peering subsystem " ),
90
90
},
91
91
Run : func (req * cmds.Request , res cmds.ResponseEmitter , env cmds.Environment ) error {
92
92
addrs := make ([]ma.Multiaddr , len (req .Arguments ))
@@ -128,16 +128,17 @@ var swarmPeeringAddCmd = &cmds.Command{
128
128
129
129
var swarmPeeringLsCmd = & cmds.Command {
130
130
Helptext : cmds.HelpText {
131
- Tagline : "list peers registered in the peering service ." ,
131
+ Tagline : "List peers registered in the peering subsystem ." ,
132
132
ShortDescription : `
133
- 'ipfs swarm peering ls' lists peers registered in the peering service.` ,
133
+ 'ipfs swarm peering ls' lists the peers that are registered in the peering subsystem and to which the daemon is always connected.
134
+ ` ,
134
135
},
135
136
Run : func (req * cmds.Request , res cmds.ResponseEmitter , env cmds.Environment ) error {
136
137
node , err := cmdenv .GetNode (env )
137
138
if err != nil {
138
139
return err
139
140
}
140
- peers := node .Peering .ListPeer ()
141
+ peers := node .Peering .ListPeers ()
141
142
return cmds .EmitOnce (res , addrInfos {Peers : peers })
142
143
},
143
144
Type : addrInfos {},
@@ -160,13 +161,13 @@ type addrInfos struct {
160
161
161
162
var swarmPeeringRmCmd = & cmds.Command {
162
163
Helptext : cmds.HelpText {
163
- Tagline : "remove a peer from the peering service ." ,
164
+ Tagline : "Remove a peer from the peering subsystem ." ,
164
165
ShortDescription : `
165
- 'ipfs swarm peering rm' removes peers from the peering service .
166
+ 'ipfs swarm peering rm' will remove the given ID from the peering subsystem and remove it from the always-on connection .
166
167
` ,
167
168
},
168
169
Arguments : []cmds.Argument {
169
- cmds .StringArg ("ID" , true , true , "ID of peer to remove from PeeringService " ),
170
+ cmds .StringArg ("ID" , true , true , "ID of peer to remove from the peering subsystem " ),
170
171
},
171
172
Run : func (req * cmds.Request , res cmds.ResponseEmitter , env cmds.Environment ) error {
172
173
node , err := cmdenv .GetNode (env )
0 commit comments