-
Notifications
You must be signed in to change notification settings - Fork 35
chore: move websocket proxy #203
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
Open
danyalprout
wants to merge
31
commits into
flashbots:main
Choose a base branch
from
danyalprout:move-websocket-proxy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
32d0759
Setup repo
danyalprout 0ee30a2
feat: initial project setup
danyalprout 1a8b4a1
Refactor rate limiting
danyalprout 3852ce7
Fix e2e test
danyalprout 6b7f093
Merge pull request #1 from base/setup-project
danyalprout 52779d0
chore: require 1.85
danyalprout c8476d2
Fix actions
danyalprout b8e2dfd
fix formatting
danyalprout 6ffe679
Merge pull request #2 from base/require-1.85
danyalprout c7f5bef
chore: add readme
danyalprout 78fa1ba
Merge pull request #3 from base/add-readme
danyalprout bc09363
chore: add support for hostname prometheus tag and global tags
danyalprout 1460721
Merge pull request #4 from base/global-tags
danyalprout 04d600a
Support Multiple Upstream WebSocket Connections for HA Setups
angel-ding-cb 3623ae2
fix CI
angel-ding-cb db33f91
update dependencies
angel-ding-cb c496b2b
address CI issues
angel-ding-cb e1c995b
add tests
angel-ding-cb 23b82c6
clean up comments
angel-ding-cb 4976b4f
Merge pull request #5 from base/clean-branch
danyalprout b1b5792
feat(PROTO-945): implement Redis-based rate limiting (#6)
jowparks 05fafb8
fix: parse multiple upstream url
danyalprout d72b5fd
Fix formatting
danyalprout 54987af
Update deps for audit
danyalprout bd269b4
Merge pull request #8 from base/fix-rbuilder
danyalprout 3135bb9
fix: gracefully handle redis counters via heartbeat (#9)
jowparks ef85a96
Add 'websocket-proxy/' from commit '3135bb984ed04dd7e3de65c630173b13a…
danyalprout 2615ec4
chore: combine GHA and gitignores
danyalprout 7e9bdfc
chore: fix clippy warning
danyalprout f31bc7f
chore: update gitignore/ci names
danyalprout a5de621
Merge branch 'main' into move-websocket-proxy
danyalprout File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Websocket Proxy CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "./websocket-proxy" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Redis for tests | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y redis | ||
|
||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
components: rustfmt | ||
|
||
- name: Cache dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run build | ||
run: cargo build | ||
|
||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Run clippy | ||
run: cargo clippy -- -D warnings | ||
|
||
- name: Run tests | ||
run: cargo test --all-features | ||
|
||
- name: Check for common mistakes | ||
run: cargo check | ||
|
||
docker: | ||
name: Docker Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: false | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
/target | ||
/.idea/ | ||
/.vscode/ | ||
.env | ||
websocket-proxy/.env | ||
websocket-proxy/target | ||
integration_logs | ||
.vscode | ||
.vscode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
target/ | ||
.git/ | ||
.github/ | ||
.gitignore | ||
README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
UPSTREAM_WS=ws://upstreamurl.com/rs | ||
MAXIMUM_CONCURRENT_CONNECTIONS=2 | ||
LOG_LEVEL=debug |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a benefit to run this workflow on all PRs or can we update to only run on PRs to
main
?