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

refactor!: remove GetState() on connection interface #5769

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

colin-axner
Copy link
Contributor

Description

A step towards removing the connection interface. As a nice side affect it removes a lot of unnecessary casting

closes: #XXXX

Commit Message / Changelog Entry

type: commit message

see the guidelines for commit messages. (view raw markdown for examples)


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@colin-axner colin-axner added the type: code hygiene Clean up code but without changing functionality or interfaces label Jan 30, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 30, 2024

Codecov Report

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

Comparison is base (7df8644) 81.50% compared to head (be83e04) 81.53%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5769      +/-   ##
==========================================
+ Coverage   81.50%   81.53%   +0.03%     
==========================================
  Files         199      199              
  Lines       15225    15191      -34     
==========================================
- Hits        12409    12386      -23     
+ Misses       2349     2338      -11     
  Partials      467      467              
Files Coverage Δ
modules/core/03-connection/types/connection.go 79.10% <ø> (+2.29%) ⬆️
modules/core/04-channel/keeper/packet.go 99.09% <100.00%> (-0.02%) ⬇️
modules/core/04-channel/keeper/handshake.go 90.20% <80.00%> (+0.49%) ⬆️
modules/core/04-channel/keeper/upgrade.go 92.46% <70.00%> (+0.75%) ⬆️

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Nice!

modules/core/04-channel/keeper/upgrade.go Outdated Show resolved Hide resolved
Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

never noticed we do a cast to int and a cast back to the enum 😅 pretty nice cleanup!

@colin-axner colin-axner merged commit 2d210e2 into main Jan 30, 2024
112 of 115 checks passed
@colin-axner colin-axner deleted the colin/rm-connectionI branch January 30, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: code hygiene Clean up code but without changing functionality or interfaces
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants