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

fix: config.Duration Unmarshal with koanf (#114) #115

Merged
merged 2 commits into from
Mar 30, 2021
Merged

fix: config.Duration Unmarshal with koanf (#114) #115

merged 2 commits into from
Mar 30, 2021

Conversation

GGXXLL
Copy link
Contributor

@GGXXLL GGXXLL commented Mar 30, 2021

No description provided.

@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #115 (1956518) into master (21d1e79) will decrease coverage by 0.08%.
The diff coverage is 81.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
- Coverage   76.06%   75.97%   -0.09%     
==========================================
  Files          81       81              
  Lines        3025     3047      +22     
==========================================
+ Hits         2301     2315      +14     
- Misses        541      544       +3     
- Partials      183      188       +5     
Impacted Files Coverage Δ
config/config.go 78.09% <81.81%> (+0.98%) ⬆️
dtx/sagas/mysqlstore/config.go 66.66% <0.00%> (-11.12%) ⬇️
dtx/sagas/mysqlstore/dependency.go 55.55% <0.00%> (-7.41%) ⬇️

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 21d1e79...1956518. Read the comment docs.

@GGXXLL GGXXLL requested a review from Reasno March 30, 2021 06:26
f reflect.Type,
t reflect.Type,
data interface{}) (interface{}, error) {
if t != reflect.TypeOf(Duration{}) {
Copy link
Member

Choose a reason for hiding this comment

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

we should support std library time.Duration in adition to config.Duration.

Copy link
Member

Choose a reason for hiding this comment

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

ie. reflect.TypeOf(time.Duration{}) should work out of box.

@Reasno Reasno merged commit 2390c0e into DoNewsCode:master Mar 30, 2021
@GGXXLL GGXXLL deleted the config-duration branch March 30, 2021 07:17
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.

2 participants