Make defaultMsgAcceptFunc a func not a var (#887)

This commit is contained in:
Tom Thorogood 2019-01-04 18:39:04 +10:30 committed by Miek Gieben
parent b955100a79
commit ace4e60848
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ const (
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 {
return MsgIgnore
}