Skip to content

Commit

Permalink
implement engine.StreamExecutor
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <andres@planetscale.com>
  • Loading branch information
systay committed Dec 20, 2024
1 parent de2615c commit c0393c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/vt/vttablet/tabletmanager/vdiff/shard_streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ type shardStreamer struct {
err error
}

var _ engine.StreamExecutor = (*shardStreamer)(nil)

// StreamExecute implements the StreamExecutor interface of the Primitive executor and
// it simply waits for a result to be available for this shard and sends it to the merge sorter.
func (sm *shardStreamer) StreamExecute(ctx context.Context, vcursor engine.VCursor, bindVars map[string]*querypb.BindVariable, wantfields bool, callback func(*sqltypes.Result) error) error {
func (sm *shardStreamer) StreamExecute(_ context.Context, _ engine.VCursor, _ map[string]*querypb.BindVariable, _, _ bool, callback func(*sqltypes.Result) error) error {
for result := range sm.result {
if err := callback(result); err != nil {
return err
Expand Down

0 comments on commit c0393c5

Please sign in to comment.