Skip to content

Commit

Permalink
Merge pull request #2214 from miaoyq/fixes-config-bug
Browse files Browse the repository at this point in the history
Fixes a default config bug of gc scheduler
  • Loading branch information
dmcgowan committed Mar 22, 2018
2 parents 9304193 + d465f85 commit 804249c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gc/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ func (d *duration) UnmarshalText(text []byte) error {
return nil
}

func (d duration) MarshalText() (text []byte, err error) {
return []byte(time.Duration(d).String()), nil
}

func init() {
plugin.Register(&plugin.Registration{
Type: plugin.GCPlugin,
Expand Down

0 comments on commit 804249c

Please sign in to comment.