diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2021-02-11 01:05:03 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-11 01:05:03 -0800 |
| commit | 0f426ce34d63deb6c8d4695c43a9e7c504e25005 (patch) | |
| tree | d0471963e986edb21f7a2e8ded89e9558b442c46 /weed/filer | |
| parent | 885ca34748926b5ffb6fe6ef4cfc5e225bdaa98c (diff) | |
| parent | 94eac4f00eb5fc364614b53718a4243141572215 (diff) | |
| download | seaweedfs-0f426ce34d63deb6c8d4695c43a9e7c504e25005.tar.xz seaweedfs-0f426ce34d63deb6c8d4695c43a9e7c504e25005.zip | |
Merge pull request #1801 from kmlebedev/recoveringRabbitMQ
Do reconnect to RabbitMQ
Diffstat (limited to 'weed/filer')
| -rw-r--r-- | weed/filer/filer_notify.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/filer/filer_notify.go b/weed/filer/filer_notify.go index f3a795ad0..c461a82b8 100644 --- a/weed/filer/filer_notify.go +++ b/weed/filer/filer_notify.go @@ -55,7 +55,10 @@ func (f *Filer) NotifyUpdateEvent(ctx context.Context, oldEntry, newEntry *Entry if notification.Queue != nil { glog.V(3).Infof("notifying entry update %v", fullpath) - notification.Queue.SendMessage(fullpath, eventNotification) + if err := notification.Queue.SendMessage(fullpath, eventNotification); err != nil { + // throw message + glog.Error(err) + } } f.logMetaEvent(ctx, fullpath, eventNotification) |
