Skip to content

Commit c3301c3

Browse files
committed
These two too
Signed-off-by: Miek Gieben <[email protected]>
1 parent eada9c9 commit c3301c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ type DecorateReader func(Reader) Reader
188188
// Implementations should never return a nil Writer.
189189
type DecorateWriter func(Writer) Writer
190190

191-
// InvalidMsgFunc is a listener hook for observing incoming messages that were discarded
191+
// MsgInvalidFunc is a listener hook for observing incoming messages that were discarded
192192
// because they could not be parsed.
193193
// Every message that is read by a Reader will eventually be provided to the Handler,
194194
// rejected (or ignored) by the MsgAcceptFunc, or passed to this function.
195-
type InvalidMsgFunc func(m []byte, err error)
195+
type MsgInvalidFunc func(m []byte, err error)
196196

197197
func DefaultMsgInvalidFunc(m []byte, err error) {}
198198

@@ -242,7 +242,7 @@ type Server struct {
242242
// By default DefaultMsgAcceptFunc will be used.
243243
MsgAcceptFunc MsgAcceptFunc
244244
// MsgInvalidFunc is optional, will be called if a message is received but cannot be parsed.
245-
MsgInvalidFunc InvalidMsgFunc
245+
MsgInvalidFunc MsgInvalidFunc
246246

247247
// Shutdown handling
248248
lock sync.RWMutex

0 commit comments

Comments
 (0)