This commit is contained in:
laodaming 2023-10-30 18:26:52 +08:00
parent 2970f368bc
commit aa4acd1bd2

View File

@ -16,8 +16,5 @@ var mapAllocationProcessor = map[constants.Websocket]allocationProcessorFactory{
} }
func (w *wsConnectItem) newAllocationProcessor(msgType constants.Websocket) allocationProcessorFactory { func (w *wsConnectItem) newAllocationProcessor(msgType constants.Websocket) allocationProcessorFactory {
if val, ok := mapAllocationProcessor[msgType]; ok { return mapAllocationProcessor[msgType]
return val
}
return nil
} }