Skip to content
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

Add subscribeEvents and subcriptionEvent #2254

Merged
merged 6 commits into from
Dec 6, 2024

Conversation

IronGauntlets
Copy link
Contributor

No description provided.

@IronGauntlets IronGauntlets force-pushed the IronGauntlets/implement-subscribeEvents branch 4 times, most recently from bf93293 to 26ad026 Compare November 22, 2024 12:23
@IronGauntlets IronGauntlets marked this pull request as ready for review November 22, 2024 12:28
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 70.28986% with 41 lines in your changes missing coverage. Please review.

Project coverage is 75.27%. Comparing base (2a82a59) to head (5cac638).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
rpc/subscriptions.go 68.46% 30 Missing and 11 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2254      +/-   ##
==========================================
- Coverage   75.44%   75.27%   -0.17%     
==========================================
  Files         107      108       +1     
  Lines       11406    11541     +135     
==========================================
+ Hits         8605     8688      +83     
- Misses       2149     2186      +37     
- Partials      652      667      +15     

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

@IronGauntlets IronGauntlets force-pushed the IronGauntlets/implement-subscribeEvents branch 3 times, most recently from ecaaed4 to 6ad3741 Compare November 22, 2024 12:43
@IronGauntlets IronGauntlets enabled auto-merge (rebase) November 22, 2024 12:55
@IronGauntlets IronGauntlets force-pushed the IronGauntlets/implement-subscribeEvents branch 5 times, most recently from c218d68 to 301962d Compare November 26, 2024 12:47
Copy link
Contributor

@pnowosie pnowosie left a comment

Choose a reason for hiding this comment

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

Some minors comments & ask for details

rpc/subscriptions.go Show resolved Hide resolved
rpc/subscriptions.go Show resolved Hide resolved
rpc/subscriptions_test.go Outdated Show resolved Hide resolved
rpc/subscriptions_test.go Show resolved Hide resolved
rpc/handlers.go Outdated Show resolved Hide resolved
rpc/subscriptions.go Outdated Show resolved Hide resolved
The main reason for adding this interface is for testing as it is quite
challenging to find events in a particular order.
@IronGauntlets IronGauntlets force-pushed the IronGauntlets/implement-subscribeEvents branch from 301962d to 574e637 Compare December 5, 2024 13:51
Using jsonrpc.Request for subscription response is misleading and by
adding a separate struct for returning responses to subscription events
is more appropriate
@IronGauntlets IronGauntlets force-pushed the IronGauntlets/implement-subscribeEvents branch from 574e637 to 5cac638 Compare December 5, 2024 15:38
@IronGauntlets IronGauntlets enabled auto-merge (rebase) December 5, 2024 15:45
@pnowosie pnowosie self-requested a review December 6, 2024 11:17
@IronGauntlets IronGauntlets merged commit 27f0bc1 into main Dec 6, 2024
13 checks passed
@IronGauntlets IronGauntlets deleted the IronGauntlets/implement-subscribeEvents branch December 6, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants