diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2017-07-19 18:58:00 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@debian.org> | 2017-07-19 18:58:00 +0200 |
commit | c7638802ac6c5efbe71dd2a58181ded9b52b8f32 (patch) | |
tree | 77c25ec7b1cc42a5e01528ab9d3053cab3b7e6cd /api-notification.go | |
parent | 0ac70d53b0ee75143ac664abde44d702f90f7df2 (diff) |
New upstream version 3.0.0
Diffstat (limited to 'api-notification.go')
-rw-r--r-- | api-notification.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api-notification.go b/api-notification.go index cbea1c6..25a283a 100644 --- a/api-notification.go +++ b/api-notification.go @@ -30,7 +30,7 @@ import ( // GetBucketNotification - get bucket notification at a given path. func (c Client) GetBucketNotification(bucketName string) (bucketNotification BucketNotification, err error) { // Input validation. - if err := isValidBucketName(bucketName); err != nil { + if err := s3utils.CheckValidBucketName(bucketName); err != nil { return BucketNotification{}, err } notification, err := c.getBucketNotification(bucketName) @@ -140,7 +140,7 @@ func (c Client) ListenBucketNotification(bucketName, prefix, suffix string, even defer close(notificationInfoCh) // Validate the bucket name. - if err := isValidBucketName(bucketName); err != nil { + if err := s3utils.CheckValidBucketName(bucketName); err != nil { notificationInfoCh <- NotificationInfo{ Err: err, } @@ -155,7 +155,7 @@ func (c Client) ListenBucketNotification(bucketName, prefix, suffix string, even return } - // Continously run and listen on bucket notification. + // Continuously run and listen on bucket notification. // Create a done channel to control 'ListObjects' go routine. retryDoneCh := make(chan struct{}, 1) |