Make defaultMsgAcceptFunc a func not a var (#887)
This commit is contained in:
parent
b955100a79
commit
ace4e60848
|
@ -24,7 +24,7 @@ const (
|
||||||
MsgIgnore // Ignore the error and send nothing back.
|
MsgIgnore // Ignore the error and send nothing back.
|
||||||
)
|
)
|
||||||
|
|
||||||
var defaultMsgAcceptFunc = func(dh Header) MsgAcceptAction {
|
func defaultMsgAcceptFunc(dh Header) MsgAcceptAction {
|
||||||
if isResponse := dh.Bits&_QR != 0; isResponse {
|
if isResponse := dh.Bits&_QR != 0; isResponse {
|
||||||
return MsgIgnore
|
return MsgIgnore
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue