Skip to content

Commit

Permalink
correct names
Browse files Browse the repository at this point in the history
  • Loading branch information
gvelez17 committed Oct 7, 2024
1 parent 4c8ac1b commit 2cf4533
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/src/s3-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ function definiteSearchParams<T extends Partial<StoreSearchParams>>(obj: T): Dee
*/
const MAX_LOAD_RPS = 4000

const LOAD_S3_QUEUE_ADD = 'load_s3_queue_add'
const LOAD_S3_QUEUE_SIZE = 'load_s3_queue_size'

export class S3KVFactory implements IKVFactory {
readonly #networkName: string
readonly #bucketName: string
Expand Down Expand Up @@ -187,7 +190,7 @@ class S3KVStore implements IKVStore {

get(key: string): Promise<any> {
Metrics.count(LOAD_S3_QUEUE_ADD, 1)
Metrics.observe(LOAD_S3_SIZE, this.#loadingLimit.size)
Metrics.observe(LOAD_S3_QUEUE_SIZE, this.#loadingLimit.size)
return this.#loadingLimit.add(async () => {
const value = await this.level.get(key)
return JSON.parse(value)
Expand Down

0 comments on commit 2cf4533

Please sign in to comment.