mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Don't make tag configurable if we never use that
This commit is contained in:
parent
0970c2bc72
commit
64729ffecc
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user