mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-21 06:59:24 +08:00
Code formatting: declare writer and reader on the same line
This commit is contained in:
@@ -84,8 +84,7 @@ func (server *Server) StartTCP(ctx context.Context) {
|
||||
func (server *Server) handleConnection(ctx context.Context, conn net.Conn) {
|
||||
server.ACL.RegisterConnection(&conn)
|
||||
|
||||
w := io.Writer(conn)
|
||||
r := io.Reader(conn)
|
||||
w, r := io.Writer(conn), io.Reader(conn)
|
||||
|
||||
cid := server.ConnID.Add(1)
|
||||
ctx = context.WithValue(ctx, utils.ContextConnID("ConnectionID"),
|
||||
|
Reference in New Issue
Block a user