refactor s3context: Use Go time constants

This commit is contained in:
Vincent Ambo 2017-01-27 13:39:15 +01:00
parent 0728b7c9fa
commit cd6f9eb66a
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ func bruteforceBucketLocation(region *string, bucket *string) (*s3.GetBucketLoca
select {
case bucketLocation := <-out:
return bucketLocation, nil
case <-time.After(5 * 1e9):
case <-time.After(5 * time.Second):
return nil, fmt.Errorf("Could not retrieve location for AWS bucket %s", *bucket)
}
}