This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -764,5 +764,6 @@ class Http {
764
764
class HttpConfig {
765
765
final Duration coalesceDuration;
766
766
767
- HttpConfig ({this .coalesceDuration});
767
+ HttpConfig ();
768
+ HttpConfig .withOptions ({this .coalesceDuration});
768
769
}
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class CoreDomModule extends Module {
84
84
bind (HttpDefaultHeaders );
85
85
bind (HttpDefaults );
86
86
bind (HttpInterceptors );
87
- bind (HttpConfig , toValue : new HttpConfig () );
87
+ bind (HttpConfig );
88
88
bind (Animate );
89
89
bind (ViewCache );
90
90
bind (BrowserCookies );
Original file line number Diff line number Diff line change @@ -1426,8 +1426,8 @@ void main() {
1426
1426
1427
1427
describe ('coalesce' , () {
1428
1428
beforeEachModule ((Module module) {
1429
- var coalesceDuration = new Duration (milliseconds: 100 );
1430
- module.bind (HttpConfig , toValue: new HttpConfig (coalesceDuration: coalesceDuration ));
1429
+ var duration = new Duration (milliseconds: 100 );
1430
+ module.bind (HttpConfig , toValue: new HttpConfig . withOptions (coalesceDuration: duration ));
1431
1431
});
1432
1432
1433
1433
it ('should coalesce requests' , async ((Http http) {
You can’t perform that action at this time.
0 commit comments