Browse Source

fix tests

pull/719/head
Chris Lu 6 years ago
parent
commit
ae9b81c18f
  1. 18
      weed/filer2/filer_notify.go

18
weed/filer2/filer_notify.go

@ -15,13 +15,17 @@ func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry) {
return
}
msgqueue.Queue.SendMessage(
key,
&filer_pb.EventNotification{
OldEntry: toProtoEntry(oldEntry),
NewEntry: toProtoEntry(newEntry),
},
)
if msgqueue.Queue != nil {
msgqueue.Queue.SendMessage(
key,
&filer_pb.EventNotification{
OldEntry: toProtoEntry(oldEntry),
NewEntry: toProtoEntry(newEntry),
},
)
}
}

Loading…
Cancel
Save