refactor: Presigned URL generator to use byte strings

This commit is contained in:
Rohan Verma
2019-01-16 02:03:28 +05:30
parent f3fc241849
commit 20bc00a8c8
3 changed files with 109 additions and 54 deletions
+3
View File
@@ -99,6 +99,9 @@ func BenchmarkS3_GeneratePresigned(b *testing.B) {
os.Getenv("AWS_S3_ACCESS_KEY"),
os.Getenv("AWS_S3_SECRET_KEY"),
)
b.ReportAllocs()
b.ResetTimer()
for n := 0; n < b.N; n++ {
s.GeneratePresignedURL(PresignedInput{
Bucket: os.Getenv("AWS_S3_BUCKET"),