// checkMessagesLimit returns true if we hit messages limit
checkMessagesLimit returns true if we hit messages limit
// checkMessagesLimit returns true if we hit messages limit
func checkMessagesLimit() bool {
	if maxMessagesPerSecond < 1 {
		return false
	}
	if thisSecond != time.Now().Unix() {
		thisSecond = time.Now().Unix()
		messagesThisSecond = 1
		return false
	}
	if messagesThisSecond < maxMessagesPerSecond {
		messagesThisSecond++
		return false
	}
	return true
}
func checkMessagesLimit ( ) bool { if maxMessagesPerSecond < 1 { return false } if thisSecond != time . Now ( ) . Unix ( ) { thisSecond = time . Now ( ) . Unix ( ) messagesThisSecond = 1 return false } if messagesThisSecond < maxMessagesPerSecond { messagesThisSecond ++ return false } return true }
checkMessagesLimit returns true if we hit messages limit
checkMessagesLimit returns true if we hit messages limit