Set default rate limited to true

This commit is contained in:
Andrew Morgan 2018-06-18 10:26:33 +01:00
parent e92d9981ee
commit 18d9e7950e

View file

@ -70,8 +70,10 @@ type ApplicationService struct {
// and loads their data into the config object for later access.
func loadAppservices(config *Dendrite) error {
for _, configPath := range config.ApplicationServices.ConfigFiles {
// Create a new application service
var appservice ApplicationService
// Create a new application service with default options
appservice := ApplicationService{
RateLimited: true,
}
// Create an absolute path from a potentially relative path
absPath, err := filepath.Abs(configPath)