8000 feat: extend api and conn handlers by davidterpay · Pull Request #43 · skip-mev/connect · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

feat: extend api and conn handlers #43

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Conversation

davidterpay
Copy link
Contributor

No description provided.

@davidterpay davidterpay marked this pull request as ready for review January 25, 2024 21:30
Copy link
codecov bot commented Jan 25, 2024

Codecov Report

Attention: 60 lines in your changes are missing coverage. Please review.

Comparison is base (c92ca0f) 73.19% compared to head (32b03f5) 72.68%.

❗ Current head 32b03f5 differs from pull request most recent head a2f64f3. Consider uploading reports for the commit a2f64f3 to get more accurate results

Files Patch % Lines
...oviders/base/websocket/handlers/ws_conn_handler.go 0.00% 42 Missing ⚠️
providers/base/api/handlers/request_handler.go 0.00% 14 Missing ⚠️
providers/base/api/handlers/options.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
- Coverage   73.19%   72.68%   -0.51%     
==========================================
  Files         104      105       +1     
  Lines        5599     5635      +36     
==========================================
- Hits         4098     4096       -2     
- Misses       1222     1260      +38     
  Partials      279      279              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 144 to 149
// SetConnection is used to set the connection to the data provider.
func (h *WebSocketConnHandlerImpl) SetConnection(conn *websocket.Conn) {
h.Lock()
defer h.Unlock()

h.conn = conn
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we currently only allow for one connection, should we error or return if the connection is already set?

@davidterpay davidterpay merged commit 37026d3 into main Jan 25, 2024
@zrbecker zrbecker deleted the terpay/api-handler-finetune branch November 5, 2024 21:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0