mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-23 15:01:00 -04:00
Don't make tag configurable if we never use that
This commit is contained in:
parent
0970c2bc72
commit
64729ffecc
1 changed files with 1 additions and 10 deletions
|
@ -11,7 +11,6 @@ pub const WALLET_RPC_PORT: u16 = 48083;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Monero {
|
pub struct Monero {
|
||||||
tag: String,
|
|
||||||
args: Args,
|
args: Args,
|
||||||
entrypoint: Option<String>,
|
entrypoint: Option<String>,
|
||||||
wait_for_message: String,
|
wait_for_message: String,
|
||||||
|
@ -24,7 +23,7 @@ impl Image for Monero {
|
||||||
type EntryPoint = str;
|
type EntryPoint = str;
|
||||||
|
|
||||||
fn descriptor(&self) -> String {
|
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>) {
|
fn wait_until_ready<D: Docker>(&self, container: &Container<'_, D, Self>) {
|
||||||
|
@ -75,7 +74,6 @@ impl Image for Monero {
|
||||||
impl Default for Monero {
|
impl Default for Monero {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Monero {
|
Monero {
|
||||||
tag: "v0.17.2.0".into(),
|
|
||||||
args: Args::default(),
|
args: Args::default(),
|
||||||
entrypoint: Some("".into()),
|
entrypoint: Some("".into()),
|
||||||
wait_for_message: "core RPC server started ok".to_string(),
|
wait_for_message: "core RPC server started ok".to_string(),
|
||||||
|
@ -84,13 +82,6 @@ impl Default for Monero {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl 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 {
|
pub fn wallet(name: &str, daemon_address: String) -> Self {
|
||||||
let wallet = WalletArgs::new(name, daemon_address, WALLET_RPC_PORT);
|
let wallet = WalletArgs::new(name, daemon_address, WALLET_RPC_PORT);
|
||||||
let default = Monero::default();
|
let default = Monero::default();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue