Skip to content

Commit 3d34cc0

Browse files
Yanqiang Miaodmcgowan
authored andcommitted
Fixes a default config bug of gc scheduler
Signed-off-by: Yanqiang Miao <[email protected]>
1 parent d77d4ba commit 3d34cc0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gc/scheduler/scheduler.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ func (d *duration) UnmarshalText(text []byte) error {
7575
return nil
7676
}
7777

78+
func (d duration) MarshalText() (text []byte, err error) {
79+
return []byte(time.Duration(d).String()), nil
80+
}
81+
7882
func init() {
7983
plugin.Register(&plugin.Registration{
8084
Type: plugin.GCPlugin,

0 commit comments

Comments
 (0)