mirror of https://github.com/ledisdb/ledisdb.git
Merge branch 'develop'
This commit is contained in:
commit
1328e12108
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"github.com/siddontang/ledisdb/client/go/ledis"
|
||||
"math/rand"
|
||||
"runtime"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
@ -246,6 +247,8 @@ func benchZRevRangeByRank() {
|
|||
}
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
|
||||
flag.Parse()
|
||||
|
||||
if *number <= 0 {
|
||||
|
|
|
@ -33,7 +33,7 @@ func newClientRESP(conn net.Conn, app *App) {
|
|||
c.client = newClient(app)
|
||||
c.conn = conn
|
||||
|
||||
c.rb = bufio.NewReaderSize(conn, 256)
|
||||
c.rb = bufio.NewReaderSize(conn, 4096)
|
||||
|
||||
c.resp = newWriterRESP(conn)
|
||||
c.remoteAddr = conn.RemoteAddr().String()
|
||||
|
|
Loading…
Reference in New Issue