clean client

This commit is contained in:
Daniel 2024-08-04 23:57:20 -04:00
parent 2daefc516b
commit a6acdd0ad1

View file

@ -15,7 +15,6 @@ type Client interface {
Connection
Conn() Connection
HandleCommand(*pb.Command)
HandleMessage([]byte)
}
@ -44,14 +43,6 @@ func (n *Nexus) NewClient(conn Connection) Client {
return sess
}
func (c *client) Registry() Registry {
return c.nexus
}
func (c *client) Conn() Connection {
return c.Connection
}
func (c *client) HandleMessage(mesgBytes []byte) {
var msg pb.Command
err := proto.Unmarshal(mesgBytes, &msg)