mirror of https://github.com/kubernetes/kops.git
refactor s3context: Use Go time constants
This commit is contained in:
parent
0728b7c9fa
commit
cd6f9eb66a
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue