projects
/
stakingWatchdog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove two useless comments
[stakingWatchdog.git]
/
src
/
config.rs
diff --git
a/src/config.rs
b/src/config.rs
index
30a4990
..
fbda142
100644
(file)
--- a/
src/config.rs
+++ b/
src/config.rs
@@
-1,4
+1,4
@@
-use std::
{fs::File, time}
;
+use std::
fs::File
;
use anyhow::Result;
use ron::{
use anyhow::Result;
use ron::{
@@
-10,11
+10,19
@@
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Config {
pub pub_keys: Vec<String>,
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Config {
pub pub_keys: Vec<String>,
+ pub smtp_relay_address: String,
+ pub smtp_login: String,
+ pub smtp_password: String,
}
impl Config {
pub fn default() -> Self {
}
impl Config {
pub fn default() -> Self {
- Config { pub_keys: vec![] }
+ Config {
+ pub_keys: vec![],
+ smtp_relay_address: "mail.something.com".to_string(),
+ smtp_login: "login".to_string(),
+ smtp_password: "password".to_string(),
+ }
}
pub fn read(file_path: &str) -> Result<Config> {
}
pub fn read(file_path: &str) -> Result<Config> {