File tree Expand file tree Collapse file tree 13 files changed +18
-17
lines changed Expand file tree Collapse file tree 13 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl Dummy {
53
53
54
54
/// Set the deposit that you want the adapter to return every time
55
55
/// when the [`get_deposit()`](Locked::get_deposit) get's called
56
- /// for the give [`ChannelId`] and [`Address`].
56
+ /// for the give [`ChannelId`](primitives::ChannelId) and [`Address`].
57
57
///
58
58
/// If [`Deposit`] is set to [`None`], it remove the mocked deposit.
59
59
///
@@ -281,7 +281,7 @@ mod deposit {
281
281
/// Mocked deposits for the Dummy adapter.
282
282
///
283
283
/// These deposits can be set once and the adapter will return
284
- /// the set deposit on every call to [`get_deposit()`](` Locked::get_deposit` ).
284
+ /// the set deposit on every call to [`get_deposit()`](crate::client:: Locked::get_deposit).
285
285
#[ derive( Debug , Clone , Default ) ]
286
286
pub struct Deposits ( pub Arc < DashMap < Key , Deposit > > ) ;
287
287
Original file line number Diff line number Diff line change 1
1
#![ deny( rust_2018_idioms) ]
2
2
#![ deny( clippy:: all) ]
3
+ #![ deny( rustdoc:: broken_intra_doc_links) ]
3
4
#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
4
5
5
6
pub use {
Original file line number Diff line number Diff line change 1
1
#![ deny( rust_2018_idioms) ]
2
2
#![ deny( clippy:: all) ]
3
+ #![ deny( rustdoc:: broken_intra_doc_links) ]
3
4
#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
4
5
5
6
use adex_primitives:: {
Original file line number Diff line number Diff line change 1
1
#![ deny( rust_2018_idioms) ]
2
2
#![ deny( clippy:: all) ]
3
+ #![ deny( rustdoc:: broken_intra_doc_links) ]
3
4
#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
4
5
// TODO: Remove once stabled and upstream num::Integer::div_floor(...) is fixed
5
6
#![ allow( unstable_name_collisions) ]
Original file line number Diff line number Diff line change 1
- #![ deny( clippy:: all) ]
2
1
#![ deny( rust_2018_idioms) ]
2
+ #![ deny( clippy:: all) ]
3
+ #![ deny( rustdoc:: broken_intra_doc_links) ]
3
4
#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
4
5
5
6
#[ doc( inline) ]
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ pub async fn channel_payout<C: Locked + 'static>(
557
557
558
558
/// POST `/v5/channel/dummy-deposit` request
559
559
///
560
- /// Request body (json): [`ChannelDummyDeposit`]
560
+ /// Body (json): [`ChannelDummyDeposit`]
561
561
///
562
562
/// Response: [`SuccessResponse`]
563
563
pub async fn channel_dummy_deposit < C : Locked + ' static > (
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ pub async fn channels_router<C: Locked + 'static>(
254
254
channel_payout ( req, app) . await
255
255
}
256
256
// POST /v5/channel/dummy-deposit
257
- // will allow the calling of the method only if we are using the Dummy adapter!
257
+ // We allow the calling of the method only if we are using the Dummy adapter!
258
258
else if let ( Some ( caps) , & Method :: POST , true ) = (
259
259
CHANNEL_DUMMY_ADAPTER_DEPOSIT . captures ( & path) ,
260
260
method,
@@ -265,11 +265,7 @@ pub async fn channels_router<C: Locked + 'static>(
265
265
. map_or( "" . to_string( ) , |m| m. as_str( ) . to_string( ) ) ] ) ;
266
266
req. extensions_mut ( ) . insert ( param) ;
267
267
268
- req = Chain :: new ( )
269
- . chain ( AuthRequired )
270
- // .chain(ChannelLoad)
271
- . apply ( req, app)
272
- . await ?;
268
+ req = Chain :: new ( ) . chain ( AuthRequired ) . apply ( req, app) . await ?;
273
269
274
270
channel_dummy_deposit ( req, app) . await
275
271
} else {
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ mod test {
371
371
let adapter = Adapter :: with_unlocked ( Dummy :: init ( Options {
372
372
dummy_identity : IDS [ & LEADER ] ,
373
373
dummy_auth_tokens : DUMMY_AUTH . clone ( ) ,
374
- dummy_chains : GANACHE_CONFIG . chains . values ( ) . cloned ( ) . collect ( ) ,
374
+ dummy_chains : config . chains . values ( ) . cloned ( ) . collect ( ) ,
375
375
} ) ) ;
376
376
let logger = discard_logger ( ) ;
377
377
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ mod test {
128
128
let adapter = Adapter :: with_unlocked ( Dummy :: init ( Options {
129
129
dummy_identity : IDS [ & LEADER ] ,
130
130
dummy_auth_tokens : DUMMY_AUTH . clone ( ) ,
131
- dummy_chains : GANACHE_CONFIG . chains . values ( ) . cloned ( ) . collect ( ) ,
131
+ dummy_chains : config . chains . values ( ) . cloned ( ) . collect ( ) ,
132
132
} ) ) ;
133
133
let logger = discard_logger ( ) ;
134
134
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ mod test {
161
161
let adapter = Adapter :: with_unlocked ( Dummy :: init ( Options {
162
162
dummy_identity : IDS [ & LEADER ] ,
163
163
dummy_auth_tokens : DUMMY_AUTH . clone ( ) ,
164
- dummy_chains : GANACHE_CONFIG . chains . values ( ) . cloned ( ) . collect ( ) ,
164
+ dummy_chains : config . chains . values ( ) . cloned ( ) . collect ( ) ,
165
165
} ) ) ;
166
166
let logger = discard_logger ( ) ;
167
167
You can’t perform that action at this time.
0 commit comments