testing on modified dependency
This commit is contained in:
parent
90c50b9d85
commit
132a13ae3d
4
go.mod
4
go.mod
@ -4,4 +4,6 @@ go 1.18
|
||||
|
||||
require github.com/fsnotify/fsnotify v1.7.0
|
||||
|
||||
require golang.org/x/sys v0.4.0 // indirect
|
||||
require golang.org/x/sys v0.21.0 // indirect
|
||||
|
||||
replace github.com/fsnotify/fsnotify v1.7.0 => github.com/suyono3484/fsnotify v0.0.1
|
||||
|
||||
8
go.sum
8
go.sum
@ -1,4 +1,4 @@
|
||||
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
|
||||
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
|
||||
golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
|
||||
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
github.com/suyono3484/fsnotify v0.0.1 h1:iAzZvIebquNZq4y6+RmqfIAOT92fzzemvNDRZjJ+yuA=
|
||||
github.com/suyono3484/fsnotify v0.0.1/go.mod h1:KLQ6gKnj5+1JUhJOGrDr/tMfTA0lYv4Yr19BGqgC4vs=
|
||||
golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws=
|
||||
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
|
||||
@ -47,9 +47,9 @@ func main() {
|
||||
log.Fatal("Error:", err)
|
||||
}
|
||||
|
||||
sm := new(sync.Map)
|
||||
go createEmptyAndDelete(ctx, sm, time.Second, time.Second, dir2Watch)
|
||||
go createWriteAndDelete(ctx, sm, time.Second+(time.Millisecond*100), time.Millisecond*200, dir2Watch)
|
||||
// sm := new(sync.Map)
|
||||
// go createEmptyAndDelete(ctx, sm, time.Second, time.Second, dir2Watch)
|
||||
// go createWriteAndDelete(ctx, sm, time.Second+(time.Millisecond*100), time.Millisecond*200, dir2Watch)
|
||||
|
||||
done := make(chan os.Signal, 1)
|
||||
signal.Notify(done, os.Interrupt, syscall.SIGTERM)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user