mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-14 12:13:54 +08:00
Removed print statement in simple string encoding function
This commit is contained in:
@@ -3,13 +3,14 @@
|
|||||||
[x] Config file support
|
[x] Config file support
|
||||||
[x] TCP support w/ TLS
|
[x] TCP support w/ TLS
|
||||||
[x] HTTP support w/ TLS
|
[x] HTTP support w/ TLS
|
||||||
[] Ping/Pong
|
[x] Ping/Pong
|
||||||
[] String support
|
[] String support
|
||||||
[] List support
|
[] List support
|
||||||
[] Set support
|
[] Set support
|
||||||
[] Sorted set support
|
[] Sorted set support
|
||||||
[] Hash support
|
[] Hash support
|
||||||
[] Stream support
|
[] Stream support
|
||||||
|
[] Pub/Sub support
|
||||||
|
|
||||||
[] RediSearch support
|
[] RediSearch support
|
||||||
[] RedisJSON support
|
[] RedisJSON support
|
||||||
@@ -19,4 +20,5 @@
|
|||||||
[] Bitmap support
|
[] Bitmap support
|
||||||
[] Bitfield support
|
[] Bitfield support
|
||||||
|
|
||||||
[] Add support for multiple root CAs on client side
|
[] Support for multiple root CAs on client side
|
||||||
|
[] Clustering support
|
@@ -33,7 +33,6 @@ func encodeSimpleString(wr *resp.Writer, tokens []string) error {
|
|||||||
default:
|
default:
|
||||||
return fmt.Errorf(wrong_args_error, strings.ToUpper(tokens[0]))
|
return fmt.Errorf(wrong_args_error, strings.ToUpper(tokens[0]))
|
||||||
case 2:
|
case 2:
|
||||||
fmt.Println(tokens[0], tokens[1])
|
|
||||||
wr.WriteSimpleString(tokens[1])
|
wr.WriteSimpleString(tokens[1])
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@@ -43,7 +43,6 @@ func (server *Server) handleConnection(conn net.Conn) {
|
|||||||
if cmd, err := serialization.Decode(message); err != nil {
|
if cmd, err := serialization.Decode(message); err != nil {
|
||||||
// Return error to client
|
// Return error to client
|
||||||
serialization.Encode(connRW, fmt.Sprintf("Error %s", err.Error()))
|
serialization.Encode(connRW, fmt.Sprintf("Error %s", err.Error()))
|
||||||
fmt.Println("Server: ", err)
|
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
// Return encoded message to client
|
// Return encoded message to client
|
||||||
|
Reference in New Issue
Block a user