Support ListenBucketNotificationV2 streaming (#8622)

This commit is contained in:
Harshavardhana authored and GitHub committed 2019-12-12 10:01:23 -08:00
1 parent 3211cb5df6
commit f5abe4e1f1
7 files changed
+248

No files matched your search

+5
View File
@@ -1297,6 +1297,11 @@ func sendEvent(args eventArgs) {
crypto.RemoveSensitiveEntries(args.Object.UserDefined)
crypto.RemoveInternalEntries(args.Object.UserDefined)
if globalHTTPListen.HasSubscribers() {
globalHTTPListen.Publish(args.ToEvent())
return
}
// globalNotificationSys is not initialized in gateway mode.
if globalNotificationSys == nil {
return