mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:54:02 +03:00
Use CloseRead and CloseWrites
This commit is contained in:
+4
-3
@@ -20,8 +20,9 @@ package network
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/9seconds/mtg/v2/essentials"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -95,6 +96,6 @@ var (
|
||||
// Dialer defines an interface which is required to bootstrap a network
|
||||
// instance from.
|
||||
type Dialer interface {
|
||||
Dial(network, address string) (net.Conn, error)
|
||||
DialContext(ctx context.Context, network, address string) (net.Conn, error)
|
||||
Dial(network, address string) (essentials.Conn, error)
|
||||
DialContext(ctx context.Context, network, address string) (essentials.Conn, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user