Don't make tag configurable if we never use that

This commit is contained in:
Thomas Eizinger 2021-04-19 17:19:03 +10:00
parent 0970c2bc72
commit 64729ffecc
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -11,7 +11,6 @@ pub const WALLET_RPC_PORT: u16 = 48083;
#[derive(Debug)]
pub struct Monero {
tag: String,
args: Args,
entrypoint: Option<String>,
wait_for_message: String,
@ -24,7 +23,7 @@ impl Image for Monero {
type EntryPoint = str;
fn descriptor(&self) -> String {
format!("xmrto/monero:{}", self.tag)
"xmrto/monero:v0.17.2.0".to_owned()
}
fn wait_until_ready<D: Docker>(&self, container: &Container<'_, D, Self>) {
@ -75,7 +74,6 @@ impl Image for Monero {
impl Default for Monero {
fn default() -> Self {
Monero {
tag: "v0.17.2.0".into(),
args: Args::default(),
entrypoint: Some("".into()),
wait_for_message: "core RPC server started ok".to_string(),
@ -84,13 +82,6 @@ impl Default for Monero {
}
impl Monero {
pub fn with_tag(self, tag_str: &str) -> Self {
Monero {
tag: tag_str.to_string(),
..self
}
}
pub fn wallet(name: &str, daemon_address: String) -> Self {
let wallet = WalletArgs::new(name, daemon_address, WALLET_RPC_PORT);
let default = Monero::default();