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: use timeout type when possible #5572

Merged
merged 8 commits into from
Jan 11, 2024

Conversation

colin-axner
Copy link
Contributor

Description

ref: #5404

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 10, 2024
@colin-axner colin-axner marked this pull request as ready for review January 10, 2024 16:29
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.

lgtm, love the clean up! Left one question w.r.t ErrPacketTimeout.

modules/core/04-channel/keeper/timeout.go Show resolved Hide resolved
@colin-axner colin-axner mentioned this pull request Jan 11, 2024
9 tasks
@codecov-commenter
Copy link

codecov-commenter commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (10785f0) 81.20% compared to head (93efd02) 81.18%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5572      +/-   ##
==========================================
- Coverage   81.20%   81.18%   -0.03%     
==========================================
  Files         197      197              
  Lines       15268    15247      -21     
==========================================
- Hits        12399    12378      -21     
  Misses       2404     2404              
  Partials      465      465              
Files Coverage Δ
modules/core/04-channel/keeper/packet.go 99.11% <100.00%> (-0.05%) ⬇️
modules/core/04-channel/keeper/timeout.go 95.39% <100.00%> (-0.03%) ⬇️
modules/core/04-channel/keeper/upgrade.go 92.22% <100.00%> (-0.04%) ⬇️

Copy link
Contributor

@charleenfei charleenfei left a comment

Choose a reason for hiding this comment

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

nice cleanup! thanks @colin-axner

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 and clean! Thanks @colin-axner 🚀

@damiannolan
Copy link
Member

Added backport label, I'm assuming we want it!

@colin-axner colin-axner enabled auto-merge (squash) January 11, 2024 16:54
@colin-axner colin-axner merged commit de8eb6e into main Jan 11, 2024
60 of 61 checks passed
@colin-axner colin-axner deleted the colin/3483-timeout-type-cleanup branch January 11, 2024 16:59
mergify bot pushed a commit that referenced this pull request Jan 11, 2024
* refactor: use timeout type when possible

* review: consistent error type usage

* nit: error wording

---------

Co-authored-by: Damian Nolan <damiannolan@gmail.com>
(cherry picked from commit de8eb6e)
damiannolan pushed a commit that referenced this pull request Jan 11, 2024
* refactor: use timeout type when possible

* review: consistent error type usage

* nit: error wording

---------

Co-authored-by: Damian Nolan <damiannolan@gmail.com>
(cherry picked from commit de8eb6e)

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
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.

5 participants