mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-27 12:52:27 +02:00
internal/clientinfo: remove dhcp from refresher list
dhcp lease files are watched separately using fsnotify, it does not need to be in refresher list.
This commit is contained in:
committed by
Cuong Manh Le
parent
d6768c4c39
commit
2cd8b7e021
@@ -28,7 +28,7 @@ type dhcp struct {
|
||||
selfIP string
|
||||
}
|
||||
|
||||
func (d *dhcp) refresh() error {
|
||||
func (d *dhcp) init() error {
|
||||
watcher, err := fsnotify.NewWatcher()
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user