Skip to content

Commit

Permalink
Removed unnecessary pub fields and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bbalser committed Mar 21, 2023
1 parent 071d29b commit 29f472a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions price/src/price_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ use tokio::time;

#[derive(Debug, Clone, Serialize)]
pub struct Price {
pub timestamp: DateTime<Utc>,
pub price: u64,
pub token_type: BlockchainTokenTypeV1,
timestamp: DateTime<Utc>,
price: u64,
token_type: BlockchainTokenTypeV1,
}

impl Price {
pub fn new(timestamp: DateTime<Utc>, price: u64, token_type: BlockchainTokenTypeV1) -> Self {
fn new(timestamp: DateTime<Utc>, price: u64, token_type: BlockchainTokenTypeV1) -> Self {
Self {
timestamp,
price,
Expand Down

0 comments on commit 29f472a

Please sign in to comment.