Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

graphqlbackend: update throttled to use Ctx stores (#54748)#56091

Merged
coury-clark merged 1 commit into
5.1from
update-throttled
Aug 21, 2023
Merged

graphqlbackend: update throttled to use Ctx stores (#54748)#56091
coury-clark merged 1 commit into
5.1from
update-throttled

Conversation

@ggilmore

@ggilmore ggilmore commented Aug 21, 2023

Copy link
Copy Markdown
Contributor

Manual backport of https://github.com/sourcegraph/sourcegraph/pull/54748, since there was a merge conflict.


It seems we were using a weird version of throttled which I don't think was actually based on the v2 series correctly. This updates us to the latest version and moves us away from the removed struct GCRARateLimiter and the deprecated interface GCRAStore.

I came across this while attempting to update deps and getting failing compiles.

Test Plan: we have unit tests for this, so CI.

(cherry picked from commit c390e4b)

Test plan

Original CI

@ggilmore ggilmore requested review from a team and keegancsmith August 21, 2023 22:20
@cla-bot cla-bot Bot added the cla-signed label Aug 21, 2023
@coury-clark coury-clark enabled auto-merge (squash) August 21, 2023 22:21
It seems we were using a weird version of throttled which I don't think
was actually based on the v2 series correctly. This updates us to the
latest version and moves us away from the removed struct GCRARateLimiter
and the deprecated interface GCRAStore.

I came across this while attempting to update deps and getting failing
compiles.

Test Plan: we have unit tests for this, so CI.

(cherry picked from commit c390e4b)
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

📖 Storybook live preview

@coury-clark coury-clark merged commit 9195b1f into 5.1 Aug 21, 2023
@coury-clark coury-clark deleted the update-throttled branch August 21, 2023 22:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants