From e45b7eaeaa71f9553306b0159dc33db6862c8e90 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 8 Jun 2018 14:56:30 +0100 Subject: [PATCH] Fix comments --- .../matrix-org/dendrite/common/config/appservice.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/common/config/appservice.go b/src/github.com/matrix-org/dendrite/common/config/appservice.go index ab39583cc..9a94b5f71 100644 --- a/src/github.com/matrix-org/dendrite/common/config/appservice.go +++ b/src/github.com/matrix-org/dendrite/common/config/appservice.go @@ -180,9 +180,10 @@ func checkErrors(config *Dendrite) (err error) { // Check each application service for any config errors for _, appservice := range config.Derived.ApplicationServices { - // Check that namespace(s) are valid regex + // Namespace-related checks for key, namespaceSlice := range appservice.NamespaceMap { for _, namespace := range namespaceSlice { + // Check that namespace(s) are valid regex if !IsValidRegex(namespace.Regex) { return configErrors([]string{fmt.Sprintf( "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 { log.Warn("WARNING: Application service option rate_limited is currently unimplemented") }