mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-28 03:07:07 +02:00
v0.5.0-rc5: check release
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/fsnotify/fsnotify"
|
||||
"github.com/sirupsen/logrus"
|
||||
E "github.com/yusing/go-proxy/error"
|
||||
. "github.com/yusing/go-proxy/watcher/event"
|
||||
)
|
||||
|
||||
type fileWatcherHelper struct {
|
||||
@@ -93,7 +94,10 @@ func (h *fileWatcherHelper) start() {
|
||||
continue
|
||||
}
|
||||
|
||||
msg := Event{ActorName: w.filename}
|
||||
msg := Event{
|
||||
Type: EventTypeFile,
|
||||
ActorName: w.filename,
|
||||
}
|
||||
switch {
|
||||
case event.Has(fsnotify.Create):
|
||||
msg.Action = ActionCreated
|
||||
|
||||
Reference in New Issue
Block a user