@@ -48,7 +48,7 @@ pub struct BootstrapAddQuery {
48
48
timeout : Option < StringSerialized < humantime:: Duration > > ,
49
49
}
50
50
51
- // optionally timedout wrapper around [`Ipfs::restore_bootstrappers`] with stringified errors, used
51
+ // optionally timed-out wrapper around [`Ipfs::restore_bootstrappers`] with stringified errors, used
52
52
// in both bootstrap_add_query and bootstrap_restore_query
53
53
async fn restore_helper < T : IpfsTypes > (
54
54
ipfs : Ipfs < T > ,
@@ -83,7 +83,7 @@ async fn bootstrap_add_query<T: IpfsTypes>(
83
83
. map_err( StringError :: from) ?
84
84
. to_string( ) ]
85
85
} else if default == Some ( true ) {
86
- // HTTP api documents the ?default=true as the deprecated way
86
+ // HTTP api documents ` ?default=true` as deprecated
87
87
let _ = restore_helper ( ipfs, & timeout) . await ?;
88
88
89
89
// return a list of all known bootstrap nodes as js-ipfs does
@@ -116,7 +116,7 @@ pub struct BootstrapClearQuery {
116
116
timeout : Option < StringSerialized < humantime:: Duration > > ,
117
117
}
118
118
119
- // optionally timeouted wrapper over [`Ipfs::clear_bootstrappers`] used in both
119
+ // optionally timed-out wrapper over [`Ipfs::clear_bootstrappers`] used in both
120
120
// `bootstrap_clear_query` and `bootstrap_rm_query`.
121
121
async fn clear_helper < T : IpfsTypes > (
122
122
ipfs : Ipfs < T > ,
@@ -204,7 +204,7 @@ async fn bootstrap_restore_query<T: IpfsTypes>(
204
204
) -> Result < impl Reply , Rejection > {
205
205
let _ = restore_helper ( ipfs, & query. timeout ) . await ?;
206
206
207
- // similar to add?default=true return a list of all bootstrap nodes, not only the added ones
207
+ // similar to add?default=true; returns a list of all bootstrap nodes, not only the added ones
208
208
let peers = ipfs:: config:: BOOTSTRAP_NODES . to_vec ( ) ;
209
209
let response = Response { peers } ;
210
210
0 commit comments