Skip to content

Commit

Permalink
Update to latest helium-lib (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbalser authored Jul 2, 2024
1 parent d945ad1 commit e55bfaa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 53 deletions.
61 changes: 9 additions & 52 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion price/src/price_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ pub struct PriceGenerator {
file_sink: file_sink::FileSinkClient,
}

impl AsRef<RpcClient> for PriceGenerator {
fn as_ref(&self) -> &RpcClient {
&self.client
}
}

impl ManagedTask for PriceGenerator {
fn start_task(
self: Box<Self>,
Expand Down Expand Up @@ -190,7 +196,7 @@ impl PriceGenerator {
}

async fn get_pyth_price(&self) -> Result<Price> {
helium_lib::token::price::get(&self.client, self.token)
helium_lib::token::price::get(self, self.token)
.await
.map_err(anyhow::Error::from)
.and_then(|p| {
Expand Down

0 comments on commit e55bfaa

Please sign in to comment.