diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-11-23 18:41:13 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-11-23 18:41:13 +0300 |
commit | bc61f03703dffb79c3d9d887385b968315362caa (patch) | |
tree | 04a160cdb5494784af9956400a1b4853c5a5a7f0 /internal/source/disk | |
parent | 08fb0bfc792db7c1b006ea066904d19a3456f99f (diff) |
Implement a transitional domains source
Diffstat (limited to 'internal/source/disk')
-rw-r--r-- | internal/source/disk/disk.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/source/disk/disk.go b/internal/source/disk/disk.go index 2283cad4..a3ae8901 100644 --- a/internal/source/disk/disk.go +++ b/internal/source/disk/disk.go @@ -52,9 +52,9 @@ func (d *Disk) IsReady() bool { return d.dm != nil } -// Start starts the domain source, in this case it is reading domains from +// Read starts the domain source, in this case it is reading domains from // groups on disk concurrently. -func (d *Disk) Start(rootDomain string) { +func (d *Disk) Read(rootDomain string) { go Watch(rootDomain, d.updateDomains, time.Second) } |