Fix comments

This commit is contained in:
Andrew Morgan 2018-06-08 14:56:30 +01:00
parent b8be4c66c2
commit e45b7eaeaa

View file

@ -180,9 +180,10 @@ func checkErrors(config *Dendrite) (err error) {
// Check each application service for any config errors // Check each application service for any config errors
for _, appservice := range config.Derived.ApplicationServices { for _, appservice := range config.Derived.ApplicationServices {
// Check that namespace(s) are valid regex // Namespace-related checks
for key, namespaceSlice := range appservice.NamespaceMap { for key, namespaceSlice := range appservice.NamespaceMap {
for _, namespace := range namespaceSlice { for _, namespace := range namespaceSlice {
// Check that namespace(s) are valid regex
if !IsValidRegex(namespace.Regex) { if !IsValidRegex(namespace.Regex) {
return configErrors([]string{fmt.Sprintf( return configErrors([]string{fmt.Sprintf(
"Invalid regex string for Application Service %s", appservice.ID, "Invalid regex string for Application Service %s", appservice.ID,
@ -236,7 +237,7 @@ func checkErrors(config *Dendrite) (err error) {
} }
} }
// TODO: Remove once group_id is implemented // TODO: Remove once rate_limited is implemented
if appservice.RateLimited { if appservice.RateLimited {
log.Warn("WARNING: Application service option rate_limited is currently unimplemented") log.Warn("WARNING: Application service option rate_limited is currently unimplemented")
} }