File tree 1 file changed +5
-7
lines changed 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -996,13 +996,11 @@ pub mod run {
996
996
let logger = new_logger ( & validator. sentry_logger_prefix ) ;
997
997
let campaign_remaining = CampaignRemaining :: new ( redis. clone ( ) ) ;
998
998
999
- // todo: Make platform_url configurable! Load from config or pass with env. variable
1000
- let platform_url = "https://todo-local-platform"
1001
- . parse ( )
1002
- . expect ( "Bad ApiUrl, load from Config?" ) ;
1003
- // todo: Make keep_alive_interval configurable!
1004
- let platform_api = PlatformApi :: new ( platform_url, std:: time:: Duration :: from_secs ( 3 ) )
1005
- . expect ( "Should make PlatformApi" ) ;
999
+ let platform_api = PlatformApi :: new (
1000
+ config. platform . url . clone ( ) ,
1001
+ config. platform . keep_alive_interval ,
1002
+ )
1003
+ . expect ( "Failed to build PlatformApi" ) ;
1006
1004
1007
1005
let app = Application :: new (
1008
1006
adapter,
You can’t perform that action at this time.
0 commit comments