Use network v2 instead of network v1

This commit is contained in:
9seconds
2026-02-27 15:52:29 +01:00
parent 42927c8bdc
commit 1151291535
7 changed files with 43 additions and 47 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ type EchoServer struct {
func (e *EchoServer) Run() {
e.wg.Go(func() {
<-e.ctx.Done()
e.listener.Close()
e.listener.Close() //nolint: errcheck
})
e.wg.Go(func() {
@@ -32,7 +32,7 @@ func (e *EchoServer) Run() {
e.wg.Go(func() {
<-e.ctx.Done()
conn.Close()
conn.Close() //nolint: errcheck
})
e.wg.Go(func() {
e.process(conn)