corrected default value of Server.MsgAcceptFunc as documented (#920)
the description says DefaultMsgAcceptFunc but actually defaultMsgAcceptFunc was used.
This commit is contained in:
parent
72df20724e
commit
e838e1e3ce
|
@ -301,7 +301,7 @@ func (srv *Server) init() {
|
||||||
srv.UDPSize = MinMsgSize
|
srv.UDPSize = MinMsgSize
|
||||||
}
|
}
|
||||||
if srv.MsgAcceptFunc == nil {
|
if srv.MsgAcceptFunc == nil {
|
||||||
srv.MsgAcceptFunc = defaultMsgAcceptFunc
|
srv.MsgAcceptFunc = DefaultMsgAcceptFunc
|
||||||
}
|
}
|
||||||
|
|
||||||
srv.udpPool.New = makeUDPBuffer(srv.UDPSize)
|
srv.udpPool.New = makeUDPBuffer(srv.UDPSize)
|
||||||
|
|
Loading…
Reference in New Issue