-
Notifications
You must be signed in to change notification settings - Fork 238
chore: cherry-pick celo's PR from proxy repo #1776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* Write on cache miss flag * Fix category * Update help * Update docs/help_out.txt Co-authored-by: Samuel Laferriere <[email protected]> * Update flag doc * Add e2e test for WriteOnCacheMiss flag * Fix lint --------- Co-authored-by: Samuel Laferriere <[email protected]>
api/proxy/.golangci.yml
Outdated
@@ -17,7 +17,7 @@ linters: | |||
- unused # checks for unused constants, variables, functions and types | |||
## disabled by default | |||
- asasalint # checks for pass []any as any in variadic func(...any) | |||
- asciicheck # checks that your code does not contain non-ASCII identifiers | |||
- asciicheck # checks that your code does not contain non-ASCII identifiers1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stray keystroke
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api/proxy/.golangci.yml
Outdated
@@ -195,7 +195,7 @@ linters: | |||
- unparam | |||
|
|||
# Allow certain patterns to be ignored by lll (long lines) | |||
- source: '".{120,}"' # Ignores double-quoted strings longer than 120 chars | |||
- source: '".{100,}"' # Ignores double-quoted strings longer than 120 chars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in favor of this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know... but otherwise there was a bug which the celo engineer was running into and he didn't find another way to solve it. See https://eigenlabs.slack.com/archives/C07614NNXDH/p1751913947976629?thread_ts=1750965737.272329&cid=C07614NNXDH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed comment and added some "explanation" in 2c50038
Tbf I don't understand the bug so not super sure... but its not super important to me we can keep tweaking this in another PR I think, given that this blocks the 2.1 release we're trying to achieve and I want this to be included.
Pulls in latest PR on proxy repo: Layr-Labs/eigenda-proxy#422
I think I made a mistake and squash merged #1611, because subtree pull was giving me this error (same when trying with --squash):
But TIL that git is smart when cherry-picking and has a directory-rename feature, so the changes were automatically applied to the files under api/proxy, except for 2 small weirdness: