File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -996,13 +996,11 @@ pub mod run {
996996 let logger = new_logger ( & validator. sentry_logger_prefix ) ;
997997 let campaign_remaining = CampaignRemaining :: new ( redis. clone ( ) ) ;
998998
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" ) ;
10061004
10071005 let app = Application :: new (
10081006 adapter,
You can’t perform that action at this time.
0 commit comments