fix default selector

This commit is contained in:
ginuerzh
2022-09-02 21:53:50 +08:00
parent 00f7fa2997
commit 6546f4a905
6 changed files with 70 additions and 10 deletions

View File

@ -61,6 +61,8 @@ func (h *httpHandler) Init(md md.Metadata) error {
func (h *httpHandler) Handle(ctx context.Context, conn net.Conn, opts ...handler.HandleOption) error {
defer conn.Close()
// ctx = sx.ContextWithHash(ctx, &sx.Hash{})
start := time.Now()
log := h.options.Logger.WithFields(map[string]any{
"remote": conn.RemoteAddr().String(),