refactor: get rid of router/utils.go
most functions end up in other files in the router package, but a few land in common.
This commit is contained in:
1 parent
7a5c910cd5
commit
8bd77c0d47
11 files changed
+114
-125
No files matched your search
@@ -180,6 +180,10 @@ type PacketDecodingError struct {
|
||||
Desc string
|
||||
}
|
||||
|
||||
func (pde PacketDecodingError) Error() string {
|
||||
return fmt.Sprint("Failed to decode packet: ", pde.Desc)
|
||||
}
|
||||
|
||||
func NewNonDecryptor() *NonDecryptor {
|
||||
return &NonDecryptor{}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user