Skip to content

Commit 6fec818

Browse files
committed
initial handler time
1 parent 4d83703 commit 6fec818

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/client/client_handler.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ import (
1313
"sync/atomic"
1414
"time"
1515

16+
"github.com/prometheus/client_golang/prometheus"
17+
1618
"github.com/kdudkov/goatak/internal/model"
1719
"github.com/kdudkov/goatak/pkg/cot"
1820
"github.com/kdudkov/goatak/pkg/cotproto"
19-
"github.com/prometheus/client_golang/prometheus"
2021
)
2122

2223
const (
@@ -108,7 +109,7 @@ func NewConnClientHandler(name string, conn net.Conn, config *HandlerConfig) *Co
108109
}
109110
}
110111

111-
c.closeTimer = time.AfterFunc(idleTimeout, c.closeIdle)
112+
c.setActivity()
112113

113114
return c
114115
}

0 commit comments

Comments
 (0)