Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Dec 17, 2024
1 parent 2626295 commit fbe5214
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion file_store/src/cli/dump.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::reward_manifest::RewardManifest;
use crate::{
cli::print_json,
coverage::CoverageObject,
Expand All @@ -9,6 +8,7 @@ use crate::{
mobile_radio_threshold::VerifiedRadioThresholdIngestReport,
mobile_session::{DataTransferSessionIngestReport, InvalidDataTransferIngestReport},
mobile_subscriber::{SubscriberLocationIngestReport, VerifiedSubscriberLocationIngestReport},
reward_manifest::RewardManifest,
speedtest::{CellSpeedtest, CellSpeedtestIngestReport},
traits::{MsgDecode, TimestampDecode},
unique_connections::UniqueConnectionReq,
Expand Down
5 changes: 2 additions & 3 deletions iot_config/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ pub enum ClientError {
#[error("error resolving region params: {0}")]
UndefinedRegionParams(String),
#[error("Invalid SubDaoRewardInfo proto response {0}")]
InvalidSubDaoRewardInfoProto(
#[from] crate::sub_dao_epoch_reward_info::SubDaoRewardInfoParseError,
),
InvalidSubDaoRewardInfoProto(#[from] SubDaoRewardInfoParseError),
}

#[async_trait::async_trait]
Expand Down Expand Up @@ -82,6 +80,7 @@ macro_rules! call_with_retry {
}};
}

use crate::sub_dao_epoch_reward_info::SubDaoRewardInfoParseError;
pub(crate) use call_with_retry;

impl Client {
Expand Down
2 changes: 0 additions & 2 deletions iot_config/src/sub_dao_epoch_reward_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ pub(crate) mod db {
use sqlx::postgres::PgRow;
use sqlx::{FromRow, PgExecutor, Row};

//TODO: fix rewards_issued in the query below, currently that column is not present in the table
// using delegation_rewards_issued as a placeholder for now
const GET_EPOCH_REWARD_INFO_SQL: &str = r#"
SELECT
address AS epoch_address,
Expand Down

0 comments on commit fbe5214

Please sign in to comment.