Skip to content

Commit

Permalink
refactor: remove request raws (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramzeng authored Aug 10, 2023
1 parent 5f550e8 commit 9f2a8ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (c *Connection) reader() {
continue
}

c.server.handleRequest(c, newRequest(message, buffer))
c.server.handleRequest(c, newRequest(message))
}
}
}
Expand Down
6 changes: 1 addition & 5 deletions request.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
package ramix

func newRequest(message Message, data []byte) *Request {
func newRequest(message Message) *Request {
return &Request{
Message: message,
Data: data,
RawData: data,
}
}

type Request struct {
Message Message
Data []byte
RawData []byte
}

0 comments on commit 9f2a8ee

Please sign in to comment.