Skip to content

Commit

Permalink
remove need to pull helium-lib into iot config
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Dec 20, 2024
1 parent 088b1cb commit b1e9263
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions iot_config/src/client/sub_dao_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use super::{call_with_retry, ClientError, Settings};
use crate::sub_dao_epoch_reward_info::EpochRewardInfo;
use file_store::traits::MsgVerify;
use helium_crypto::{Keypair, PublicKey, Sign};
use helium_lib::keypair::Pubkey;
use helium_proto::{
services::{
sub_dao::{self, SubDaoEpochRewardInfoReqV1},
Expand Down Expand Up @@ -40,7 +39,7 @@ pub trait SubDaoEpochRewardInfoResolver: Clone + Send + Sync + 'static {

async fn resolve_info(
&self,
sub_dao: &Pubkey,
sub_dao: &str,
epoch: u64,
) -> Result<Option<EpochRewardInfo>, Self::Error>;
}
Expand All @@ -51,7 +50,7 @@ impl SubDaoEpochRewardInfoResolver for SubDaoClient {

async fn resolve_info(
&self,
sub_dao: &Pubkey,
sub_dao: &str,
epoch: u64,
) -> Result<Option<EpochRewardInfo>, Self::Error> {
let mut request = SubDaoEpochRewardInfoReqV1 {
Expand Down
2 changes: 1 addition & 1 deletion iot_verifier/src/rewarder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ where
pub async fn reward(&mut self, next_reward_epoch: u64) -> anyhow::Result<()> {
let reward_info = self
.sub_dao_epoch_reward_client
.resolve_info(&self.sub_dao, next_reward_epoch)
.resolve_info(&self.sub_dao.to_string(), next_reward_epoch)
.await?
.ok_or(anyhow::anyhow!(
"No reward info found for epoch {}",
Expand Down

0 comments on commit b1e9263

Please sign in to comment.