change default dns server

This commit is contained in:
wyhaya
2019-09-02 16:37:12 +08:00
parent e518617c7b
commit 78b6b7d90a
2 changed files with 6 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ impl Watch {
Ok(modified)
}
pub async fn change(&mut self, func: fn(path: &PathBuf)) {
pub async fn for_each(&mut self, func: fn(path: &PathBuf)) {
let mut repeat = stream::repeat(0);
let mut before = match self.modified().await {
Ok(time) => Some(time),