Support ListenBucketNotificationV2 streaming (#8622)

This commit is contained in:
Harshavardhana
2019-12-12 10:01:23 -08:00
committed by GitHub
parent 3211cb5df6
commit f5abe4e1f1
7 changed files with 248 additions and 0 deletions

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