Skip to content

Commit

Permalink
Merge pull request #3 from starkbamse/update-module-name
Browse files Browse the repository at this point in the history
Update module name
  • Loading branch information
saefstroem authored May 16, 2024
2 parents c69d2f9 + 1719505 commit fbba781
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/rustlink.rs → src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub struct Rustlink {
/// which you can create by doing:
/// ```rust
/// use async_std::channel::unbounded;
/// use rustlink::config::Reflector;
/// use rustlink::core::Reflector;
///
/// let (sender, receiver) = unbounded();
///
Expand Down Expand Up @@ -76,7 +76,7 @@ impl Rustlink {
///
/// ```rust
/// use async_std::channel::unbounded;
/// use rustlink::config::{Reflector, Rustlink};
/// use rustlink::core::{Reflector, Rustlink};
///
/// #[tokio::main]
///
Expand Down
4 changes: 2 additions & 2 deletions src/fetcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use async_std::stream::StreamExt;
use futures::{select, FutureExt};

use super::interface::{ChainlinkContract, Round};
use crate::rustlink::Reflector::Sender;
use crate::rustlink::{Configuration, Rustlink};
use crate::core::Reflector::Sender;
use crate::core::{Configuration, Rustlink};

/// Retrieves the price of an underlying asset from a particular contract
async fn fetch_round_data_for_contract(
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod rustlink;
pub mod core;
mod error;
mod fetcher;
mod interface;
Expand All @@ -7,7 +7,7 @@ mod tests {

use async_std::channel::unbounded;

use crate::rustlink::{Reflector, Rustlink};
use crate::core::{Reflector, Rustlink};

#[tokio::test]
async fn ensure_price_is_received() {
Expand Down

0 comments on commit fbba781

Please sign in to comment.