diff --git a/mc/proto/connection.go b/mc/proto/connection.go index 46f92cc..37b3eaf 100644 --- a/mc/proto/connection.go +++ b/mc/proto/connection.go @@ -346,6 +346,7 @@ func (c *Conn) Receive() (packet proto_base.EncodeDecodeAble, err error) { } return } + // NewConn creates a new Conn with default settings and a background context. func NewConn() (ret *Conn) { return NewConnCtx(context.Background()) diff --git a/mc/proto_base/base_types.go b/mc/proto_base/base_types.go index 8b30c61..c14d688 100644 --- a/mc/proto_base/base_types.go +++ b/mc/proto_base/base_types.go @@ -113,7 +113,7 @@ func (a Actor) ReceiveDirection() Direction { type ( // ToDo is a placeholder type for unimplemented packet fields. - ToDo struct{} + ToDo struct{} // RestBuffer represents the remaining unread bytes in a packet buffer. RestBuffer []byte )