Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module name #3

Merged
merged 1 commit into from
May 16, 2024
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
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