Skip to content

Commit

Permalink
fix(vault): add retries (#1932)
Browse files Browse the repository at this point in the history
* fix: add retries

* chore(package.json): update keywords format to single line array
  • Loading branch information
chronark authored Jul 18, 2024
1 parent 161fc59 commit cf75149
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 55 deletions.
3 changes: 3 additions & 0 deletions apps/agent/services/vault/storage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func NewS3(config S3Config) (Storage, error) {
awsConfig.WithEndpointResolverWithOptions(r2Resolver),
awsConfig.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(config.S3AccessKeyId, config.S3AccessKeySecret, "")),
awsConfig.WithRegion("auto"),
awsConfig.WithRetryMode(aws.RetryModeStandard),
awsConfig.WithRetryMaxAttempts(3),
)

if err != nil {
Expand Down Expand Up @@ -78,6 +80,7 @@ func (s *s3) Latest(workspaceId string) string {
}

func (s *s3) PutObject(ctx context.Context, key string, data []byte) error {

_, err := s.client.PutObject(ctx, &awsS3.PutObjectInput{
Bucket: aws.String(s.config.S3Bucket),
Key: aws.String(key),
Expand Down
11 changes: 2 additions & 9 deletions apps/semantic-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,12 @@
"types": "./dist/index.d.ts",
"license": "AGPL-3.0-only",
"private": true,
"keywords": [
"unkey",
"semantic",
"cache",
"ai"
],
"keywords": ["unkey", "semantic", "cache", "ai"],
"bugs": {
"url": "https://github.com/unkeyed/unkey/issues"
},
"homepage": "https://github.com/unkeyed/unkey#readme",
"files": [
"./dist/**"
],
"files": ["./dist/**"],
"author": "Dominic Eccleston [email protected]",
"scripts": {
"build": "tsc",
Expand Down
10 changes: 2 additions & 8 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,12 @@
"publishConfig": {
"access": "public"
},
"keywords": [
"unkey",
"client",
"api"
],
"keywords": ["unkey", "client", "api"],
"bugs": {
"url": "https://github.com/unkeyed/unkey/issues"
},
"homepage": "https://github.com/unkeyed/unkey#readme",
"files": [
"./dist/**"
],
"files": ["./dist/**"],
"author": "Andreas Thomas <[email protected]>",
"scripts": {
"generate": "openapi-typescript https://api.unkey.dev/openapi.json -o ./src/openapi.d.ts",
Expand Down
14 changes: 2 additions & 12 deletions packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,12 @@
"publishConfig": {
"access": "public"
},
"keywords": [
"unkey",
"cache",
"cloudflare",
"tiered",
"swr",
"memory",
"latency"
],
"keywords": ["unkey", "cache", "cloudflare", "tiered", "swr", "memory", "latency"],
"bugs": {
"url": "https://github.com/unkeyed/unkey/issues"
},
"homepage": "https://github.com/unkeyed/unkey#readme",
"files": [
"./dist/**"
],
"files": ["./dist/**"],
"author": "Andreas Thomas <[email protected]>",
"scripts": {
"build": "tsup",
Expand Down
11 changes: 2 additions & 9 deletions packages/hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@
"publishConfig": {
"access": "public"
},
"keywords": [
"unkey",
"client",
"api",
"hono"
],
"keywords": ["unkey", "client", "api", "hono"],
"bugs": {
"url": "https://github.com/unkeyed/unkey/issues"
},
"homepage": "https://github.com/unkeyed/unkey#readme",
"files": [
"./dist/**"
],
"files": ["./dist/**"],
"author": "Andreas Thomas <[email protected]>",
"scripts": {
"build": "tsup",
Expand Down
10 changes: 2 additions & 8 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@
"publishConfig": {
"access": "public"
},
"keywords": [
"unkey",
"client",
"api"
],
"keywords": ["unkey", "client", "api"],
"bugs": {
"url": "https://github.com/unkeyed/unkey/issues"
},
"homepage": "https://github.com/unkeyed/unkey#readme",
"files": [
"./dist/**"
],
"files": ["./dist/**"],
"author": "Andreas Thomas <[email protected]>",
"scripts": {
"build": "tsup"
Expand Down
11 changes: 2 additions & 9 deletions packages/ratelimit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,12 @@
"publishConfig": {
"access": "public"
},
"keywords": [
"unkey",
"ratelimit",
"global",
"serverless"
],
"keywords": ["unkey", "ratelimit", "global", "serverless"],
"bugs": {
"url": "https://github.com/unkeyed/unkey/issues"
},
"homepage": "https://github.com/unkeyed/unkey#readme",
"files": [
"./dist/**"
],
"files": ["./dist/**"],
"author": "Andreas Thomas <[email protected]>",
"scripts": {
"build": "tsup"
Expand Down

1 comment on commit cf75149

@vercel
Copy link

@vercel vercel bot commented on cf75149 Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

planetfall – ./apps/planetfall

planetfall-unkey.vercel.app
planetfall-two.vercel.app
planetfall-git-main-unkey.vercel.app
planetfall.unkey.dev

Please sign in to comment.