aboutsummaryrefslogtreecommitdiff
path: root/src/dns_config.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-11 22:35:56 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-11 22:35:56 +0100
commit5f946d485c62feca79e907a2d071a291dcc8c7bf (patch)
treee7ffae5e839e215bcf49ebd90f4954695f02c057 /src/dns_config.rs
parent7c8dcd7aa757273e908a8ef77e701244c6e6d184 (diff)
downloadD53-5f946d485c62feca79e907a2d071a291dcc8c7bf.tar.gz
D53-5f946d485c62feca79e907a2d071a291dcc8c7bf.zip
Retry DNS updates when they fail
Diffstat (limited to 'src/dns_config.rs')
-rw-r--r--src/dns_config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dns_config.rs b/src/dns_config.rs
index 77153ea..1356fc7 100644
--- a/src/dns_config.rs
+++ b/src/dns_config.rs
@@ -24,7 +24,7 @@ pub struct DnsConfig {
pub entries: HashMap<DnsEntryKey, DnsEntryValue>,
}
-#[derive(Debug, Hash, PartialEq, Eq)]
+#[derive(Clone, Debug, Hash, PartialEq, Eq)]
pub struct DnsEntryKey {
pub dns_path: String,
pub record_type: DnsRecordType,
@@ -35,7 +35,7 @@ pub struct DnsEntryValue {
pub targets: HashSet<String>,
}
-#[derive(Debug, Hash, PartialEq, Eq)]
+#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
#[allow(clippy::upper_case_acronyms)]
pub enum DnsRecordType {
A,