mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-13 12:33:47 +08:00
tiny bug fix
This commit is contained in:
@@ -68,11 +68,11 @@ func ListenAndServe(cfg *Config, handler tcp.Handler) {
|
||||
}
|
||||
// handle
|
||||
logger.Info("accept link")
|
||||
waitDone.Add(1)
|
||||
go func() {
|
||||
defer func() {
|
||||
waitDone.Done()
|
||||
}()
|
||||
waitDone.Add(1)
|
||||
handler.Handle(ctx, conn)
|
||||
}()
|
||||
}
|
||||
|
Reference in New Issue
Block a user