mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:34:02 +03:00
Use network v2 instead of network v1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user