File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,11 @@ type DecorateReader func(Reader) Reader
188
188
// Implementations should never return a nil Writer.
189
189
type DecorateWriter func (Writer ) Writer
190
190
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
192
192
// because they could not be parsed.
193
193
// Every message that is read by a Reader will eventually be provided to the Handler,
194
194
// 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 )
196
196
197
197
func DefaultMsgInvalidFunc (m []byte , err error ) {}
198
198
@@ -242,7 +242,7 @@ type Server struct {
242
242
// By default DefaultMsgAcceptFunc will be used.
243
243
MsgAcceptFunc MsgAcceptFunc
244
244
// MsgInvalidFunc is optional, will be called if a message is received but cannot be parsed.
245
- MsgInvalidFunc InvalidMsgFunc
245
+ MsgInvalidFunc MsgInvalidFunc
246
246
247
247
// Shutdown handling
248
248
lock sync.RWMutex
You can’t perform that action at this time.
0 commit comments