mirror of
https://github.com/chaisql/chai.git
synced 2025-10-25 08:32:44 +08:00
stream: clone stream before execution
This commit is contained in:
@@ -23,6 +23,13 @@ func Validate(indexName string) *ValidateOperator {
|
||||
}
|
||||
}
|
||||
|
||||
func (op *ValidateOperator) Clone() stream.Operator {
|
||||
return &ValidateOperator{
|
||||
BaseOperator: op.BaseOperator.Clone(),
|
||||
indexName: op.indexName,
|
||||
}
|
||||
}
|
||||
|
||||
func (op *ValidateOperator) Iterate(in *environment.Environment, fn func(out *environment.Environment) error) error {
|
||||
tx := in.GetTx()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user