mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 08:46:56 +08:00
rename godis/redis/reply to godis/redis/protocol
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/hdt3213/godis/lib/sync/atomic"
|
||||
"github.com/hdt3213/godis/redis/connection"
|
||||
"github.com/hdt3213/godis/redis/parser"
|
||||
"github.com/hdt3213/godis/redis/reply"
|
||||
"github.com/hdt3213/godis/redis/protocol"
|
||||
"io"
|
||||
"net"
|
||||
"strings"
|
||||
@@ -75,7 +75,7 @@ func (h *Handler) Handle(ctx context.Context, conn net.Conn) {
|
||||
return
|
||||
}
|
||||
// protocol err
|
||||
errReply := reply.MakeErrReply(payload.Err.Error())
|
||||
errReply := protocol.MakeErrReply(payload.Err.Error())
|
||||
err := client.Write(errReply.ToBytes())
|
||||
if err != nil {
|
||||
h.closeClient(client)
|
||||
@@ -88,9 +88,9 @@ func (h *Handler) Handle(ctx context.Context, conn net.Conn) {
|
||||
logger.Error("empty payload")
|
||||
continue
|
||||
}
|
||||
r, ok := payload.Data.(*reply.MultiBulkReply)
|
||||
r, ok := payload.Data.(*protocol.MultiBulkReply)
|
||||
if !ok {
|
||||
logger.Error("require multi bulk reply")
|
||||
logger.Error("require multi bulk protocol")
|
||||
continue
|
||||
}
|
||||
result := h.db.Exec(client, r.Args)
|
||||
|
Reference in New Issue
Block a user