From ace4e60848bfce64e35bc56c5157362cf333688f Mon Sep 17 00:00:00 2001 From: Tom Thorogood Date: Fri, 4 Jan 2019 18:39:04 +1030 Subject: [PATCH] Make defaultMsgAcceptFunc a func not a var (#887) --- acceptfunc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acceptfunc.go b/acceptfunc.go index 3f3a45d1..53c1739f 100644 --- a/acceptfunc.go +++ b/acceptfunc.go @@ -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 }