Fixes a default config bug of gc scheduler
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
This commit is contained in:
parent
3c1ef1a714
commit
d465f858a0
@ -91,6 +91,10 @@ func (d *duration) UnmarshalText(text []byte) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d duration) MarshalText() (text []byte, err error) {
|
||||||
|
return []byte(time.Duration(d).String()), nil
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
plugin.Register(&plugin.Registration{
|
plugin.Register(&plugin.Registration{
|
||||||
Type: plugin.GCPlugin,
|
Type: plugin.GCPlugin,
|
||||||
|
Loading…
Reference in New Issue
Block a user