feat(parser/dummy): support force quit
This commit is contained in:
parent
6cb6cb1f67
commit
08cd9d287b
|
@ -5,8 +5,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Conf struct {
|
type Conf struct {
|
||||||
Score int
|
Score int
|
||||||
Comment string
|
Comment string
|
||||||
|
ForceQuit bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type Dummy struct{}
|
type Dummy struct{}
|
||||||
|
@ -22,5 +23,5 @@ func (*Dummy) Run(results []stage.ExecutorResult, confAny any) (
|
||||||
for range results {
|
for range results {
|
||||||
res = append(res, stage.ParserResult{Score: conf.Score, Comment: conf.Comment})
|
res = append(res, stage.ParserResult{Score: conf.Score, Comment: conf.Comment})
|
||||||
}
|
}
|
||||||
return res, false, nil
|
return res, conf.ForceQuit, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user