mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-01 21:50:29 +03:00
Pull request 2239: 7076 Empty FSWatcher
Updates #7076.
Squashed commit of the following:
commit 6d99de9bcd1a4882f96639cf7e54fe0f33cfbfd3
Merge: c545152fa 1c82be295
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date: Mon Jun 17 18:41:49 2024 +0300
Merge branch 'master' into 7076-empty-fswatcher
commit c545152fa157e52f9ac5ebf2e58fdc1a254faf91
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date: Fri Jun 14 14:57:01 2024 +0300
all: imp code
commit e033558d7027a40a6996c08b5125e45141192071
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date: Fri Jun 14 14:39:58 2024 +0300
all: add & use empty fswatcher
This commit is contained in:
parent
1c82be2950
commit
66877c92d9
4 changed files with 41 additions and 2 deletions
internal/home
|
@ -232,7 +232,9 @@ func configureOS(conf *configuration) (err error) {
|
|||
func setupHostsContainer() (err error) {
|
||||
hostsWatcher, err := aghos.NewOSWritesWatcher()
|
||||
if err != nil {
|
||||
return fmt.Errorf("initing hosts watcher: %w", err)
|
||||
log.Info("WARNING: initializing filesystem watcher: %s; not watching for changes", err)
|
||||
|
||||
hostsWatcher = aghos.EmptyFSWatcher{}
|
||||
}
|
||||
|
||||
paths, err := hostsfile.DefaultHostsPaths()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue