aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-04-15 20:00:17 +0100
committerGravatar Miek Gieben <miek@miek.nl> 2016-04-15 20:00:17 +0100
commitdcd05032a4624dd03000f51573e3c8626a2fa76d (patch)
tree3b68a877fc08fe2c764da61218299fd88315b2d8 /main.go
parentaa0ba0c3b4376c55f78091cac58e2237fc5c91ec (diff)
downloadcoredns-dcd05032a4624dd03000f51573e3c8626a2fa76d.tar.gz
coredns-dcd05032a4624dd03000f51573e3c8626a2fa76d.tar.zst
coredns-dcd05032a4624dd03000f51573e3c8626a2fa76d.zip
Watch the entire directory
Instead of watching a single file watch the entire directory and catch the .Name from the event. On any event, just reload the damn thing. This also fixes the problem of loosing events when the inode changes.
Diffstat (limited to 'main.go')
0 files changed, 0 insertions, 0 deletions