Skip to content

Commit

Permalink
Changed struct name
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinoUberti committed Feb 24, 2023
1 parent 4b2aac9 commit 1b044a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .mqc/login.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
quay_endpoint_login:
- quay_endpoint: example-registry-quay-quay1.apps.ocphub.lab.seeweb
quay_token:
quay_token:
- quay_endpoint: example-registry-quay-quay2.apps.ocphub.lab.seeweb
quay_token:
mirror_repository:
Expand Down
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use env_logger::{fmt::Color, Env, Target};
use std::{error::Error, io};
use tokio::time::Instant;
//use console_subscriber;
use crate::quay_configurator::quay_config_reader::QuayXmlConfig;
use crate::quay_configurator::quay_config_reader::QuayYamlConfig;
use env_logger;
use log::{error, info, Level};
use std::io::Write;
Expand Down Expand Up @@ -203,9 +203,9 @@ async fn main() -> Result<(), Box<dyn Error>> {


// main config
let mut config: QuayXmlConfig;
let mut config: QuayYamlConfig;

match QuayXmlConfig::new(
match QuayYamlConfig::new(
&dir,
req_per_seconds,
log_level,
Expand All @@ -231,7 +231,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
}
}

match QuayXmlConfig::new(
match QuayYamlConfig::new(
&dir,
req_per_seconds,
log_level,
Expand Down
4 changes: 2 additions & 2 deletions src/quay_configurator/quay_config_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use tokio::time::Instant;

// Main Config struct
#[derive(Debug)]
pub struct QuayXmlConfig {
pub struct QuayYamlConfig {
organization: Vec<OrganizationYaml>,
directory: String,
governor: Arc<RateLimiter<NotKeyed, InMemoryState, QuantaClock, NoOpMiddleware<QuantaInstant>>>,
Expand All @@ -35,7 +35,7 @@ pub struct QuayXmlConfig {
retries: u32,
}

impl QuayXmlConfig {
impl QuayYamlConfig {
pub fn new(
directory: &String,
req_per_seconds: u32,
Expand Down

0 comments on commit 1b044a8

Please sign in to comment.