Merge pull request #2214 from miaoyq/fixes-config-bug

Fixes a default config bug of gc scheduler
This commit is contained in:
Derek McGowan 2018-03-22 13:21:33 -07:00 committed by GitHub
commit 804249cdcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,