This commit is contained in:
ycc 2022-12-16 22:29:12 +01:00
parent 8879ef3f02
commit 4e7a804ef1

View File

@ -45,7 +45,7 @@ func ProcessOutboundTextMessage(peer *Peer, text string, srv *InternalServer) ([
}
// TODO refactor protobuf to avid 2 methods
func ProcessOutboundMessage(peer *Peer, toServerMessage *meowlib.ToServerMessage, srv *InternalServer) ([]byte, error) {
func ProcessOutboundMessage(toServerMessage *meowlib.ToServerMessage, srv *InternalServer) ([]byte, error) {
byteToServerMessage, err := proto.Marshal(toServerMessage)
if err != nil {
return nil, err