Skip to content

Commit b8ffbef

Browse files
elpielsimzzz
andauthored
test_harness - use config keep alive for PlatformApi
Co-authored-by: Simeon Nakov <[email protected]>
1 parent 8d59c3c commit b8ffbef

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test_harness/src/lib.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)