mirror of
https://github.com/restic/restic.git
synced 2025-12-18 13:32:13 +00:00
Update vendored library github.com/minio/minio-go
This commit is contained in:
12
vendor/github.com/minio/minio-go/api-notification.go
generated
vendored
12
vendor/github.com/minio/minio-go/api-notification.go
generated
vendored
@@ -205,13 +205,11 @@ func (c Client) ListenBucketNotification(bucketName, prefix, suffix string, even
|
||||
if err = json.Unmarshal(bio.Bytes(), ¬ificationInfo); err != nil {
|
||||
continue
|
||||
}
|
||||
// Send notifications on channel only if there are events received.
|
||||
if len(notificationInfo.Records) > 0 {
|
||||
select {
|
||||
case notificationInfoCh <- notificationInfo:
|
||||
case <-doneCh:
|
||||
return
|
||||
}
|
||||
// Send notificationInfo
|
||||
select {
|
||||
case notificationInfoCh <- notificationInfo:
|
||||
case <-doneCh:
|
||||
return
|
||||
}
|
||||
}
|
||||
// Look for any underlying errors.
|
||||
|
||||
Reference in New Issue
Block a user