use k8s.io/utils/inotify instead of github.com/go-sigma/inotify

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
This commit is contained in:
Tarun Pothulapati 2019-07-28 19:28:56 +05:30
parent 28e88e3f19
commit f4e2907477

View File

@ -17,7 +17,7 @@ limitations under the License.
package app
import (
"github.com/sigma/go-inotify"
"k8s.io/utils/inotify"
"k8s.io/klog"
)
@ -27,7 +27,7 @@ func watchForLockfileContention(path string, done chan struct{}) error {
klog.Errorf("unable to create watcher for lockfile: %v", err)
return err
}
if err = watcher.AddWatch(path, inotify.IN_OPEN|inotify.IN_DELETE_SELF); err != nil {
if err = watcher.AddWatch(path, inotify.InOpen|inotify.InDeleteSelf); err != nil {
klog.Errorf("unable to watch lockfile: %v", err)
return err
}