Skip to content

Commit

Permalink
test: the pipeline of rueidiscompat
Browse files Browse the repository at this point in the history
Signed-off-by: Rueian <rueiancsie@gmail.com>
  • Loading branch information
rueian committed Aug 20, 2024
1 parent fced78b commit 7f598a2
Show file tree
Hide file tree
Showing 2 changed files with 950 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rueidiscompat/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ package rueidiscompat
import (
"context"
"errors"
"runtime"
"time"
"unsafe"

Expand Down Expand Up @@ -85,7 +86,7 @@ func (p *proxy) Do(_ context.Context, cmd rueidis.Completed) rueidis.RedisResult
}

func newPipeline(real rueidis.Client) *Pipeline {
return &Pipeline{comp: Compat{client: &proxy{Client: real}}}
return &Pipeline{comp: Compat{client: &proxy{Client: real}, maxp: runtime.GOMAXPROCS(0), pOnly: true}}
}

// Pipeline implements pipelining as described in
Expand Down
Loading

0 comments on commit 7f598a2

Please sign in to comment.