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

Simplify event subscription and fix serialization issue (#278) #279

Merged
merged 18 commits into from
May 25, 2020

Conversation

liamsi
Copy link
Member

@liamsi liamsi commented May 23, 2020

ref #278 and followup to #225

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGES.md

 - rename Event -> TMEventData and
 - introduce ResultEvent type which will replace
   JsonRPCBlockResult, JsonRPCTransactionResult
@liamsi liamsi force-pushed the ismail/event_subscription_revisted branch from a8e0737 to ff97e71 Compare May 23, 2020 23:48
@codecov-commenter
Copy link

codecov-commenter commented May 23, 2020

Codecov Report

Merging #279 into master will increase coverage by 0.1%.
The diff coverage is 0.0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #279     +/-   ##
========================================
+ Coverage    26.9%   27.0%   +0.1%     
========================================
  Files         105     105             
  Lines        3844    3827     -17     
  Branches     1217    1215      -2     
========================================
  Hits         1037    1037             
+ Misses       1963    1946     -17     
  Partials      844     844             
Impacted Files Coverage Δ
tendermint/src/rpc/event_listener.rs 0.0% <0.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d28c4b1...974a6f4. Read the comment docs.

@liamsi liamsi force-pushed the ismail/event_subscription_revisted branch from 52b6ce4 to 701f3f8 Compare May 24, 2020 00:04
@liamsi liamsi marked this pull request as ready for review May 24, 2020 01:20
@liamsi liamsi requested a review from greg-szabo May 24, 2020 01:21
zmanian
zmanian previously approved these changes May 24, 2020
@liamsi liamsi requested a review from brapse May 24, 2020 01:23
xla
xla previously approved these changes May 24, 2020
Copy link
Contributor

@xla xla left a comment

Choose a reason for hiding this comment

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

👁 🔑 🕑 ✍

tendermint/src/rpc/event_listener.rs Outdated Show resolved Hide resolved
tendermint/src/rpc/event_listener.rs Outdated Show resolved Hide resolved
tendermint/src/rpc/event_listener.rs Show resolved Hide resolved
tendermint/src/rpc/event_listener.rs Outdated Show resolved Hide resolved
@liamsi liamsi dismissed stale reviews from xla and zmanian via 0e3e422 May 24, 2020 22:56
 - instead return None if we didn't read a event
   (but e.g. a ping message)
 - instead return None if we didn't read a event
   (but e.g. a ping message)
Copy link
Contributor

@xla xla left a comment

Choose a reason for hiding this comment

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

🚅 ⛰ 🔭 🔋

@liamsi
Copy link
Member Author

liamsi commented May 25, 2020

I'll merged this as is but I still think this still needs some more work. But instead of re-iterating on the implementation only, it would be better to write up an ADR describing the event subscription and the made and to be made design choices briefly. I'll followup on that shortly.

@liamsi liamsi merged commit e8a8cc9 into master May 25, 2020
@liamsi liamsi deleted the ismail/event_subscription_revisted branch May 25, 2020 15:25
@liamsi liamsi changed the title Simplify event subscription Simplify event subscription and fix serialization issue (#278) May 27, 2020
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.

None yet

4 participants