Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boost_manager/src/activator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ where
manifest: RewardManifest,
) -> Result<()> {
// get latest boosted hexes info from mobile config
let boosted_hexes = BoostedHexes::get_all(&self.hex_boosting_client).await?;
let boosted_hexes = BoostedHexes::get_active(&self.hex_boosting_client).await?;

// get the rewards file from the manifest
let manifest_time = manifest.end_timestamp;
Expand Down
6 changes: 3 additions & 3 deletions boost_manager/tests/integrations/activator_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl TestContext {
async fn test_activated_hex_insert(pool: PgPool) -> anyhow::Result<()> {
let now = Utc::now();
let ctx = TestContext::setup(now)?;
let boosted_hexes = BoostedHexes::new(ctx.boosted_hexes);
let boosted_hexes = BoostedHexes::test_new_active(ctx.boosted_hexes)?;

// test a boosted hex derived from radio rewards
// with a non set start date, will result in a row being
Expand Down Expand Up @@ -117,7 +117,7 @@ async fn test_activated_hex_insert(pool: PgPool) -> anyhow::Result<()> {
async fn test_activated_hex_no_insert(pool: PgPool) -> anyhow::Result<()> {
let now = Utc::now();
let ctx = TestContext::setup(now)?;
let boosted_hexes = BoostedHexes::new(ctx.boosted_hexes);
let boosted_hexes = BoostedHexes::test_new_active(ctx.boosted_hexes)?;

// test a boosted hex derived from radio rewards
// with an active start date, will result in no row being
Expand All @@ -143,7 +143,7 @@ async fn test_activated_hex_no_insert(pool: PgPool) -> anyhow::Result<()> {
async fn test_activated_dup_hex_insert(pool: PgPool) -> anyhow::Result<()> {
let now = Utc::now().with_second(0).unwrap();
let ctx = TestContext::setup(now)?;
let boosted_hexes = BoostedHexes::new(ctx.boosted_hexes);
let boosted_hexes = BoostedHexes::test_new_active(ctx.boosted_hexes)?;

// test with DUPLICATE boosted hexes derived from radio rewards
// with a non set start date, will result in a single row being
Expand Down
Loading