From 70c18e62c2621b133ac89536b0d9ea317d15d090 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Thu, 12 Jul 2018 10:48:59 +0100 Subject: [PATCH] Clean up diff --- src/github.com/matrix-org/dendrite/appservice/appservice.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/appservice/appservice.go b/src/github.com/matrix-org/dendrite/appservice/appservice.go index 0b7bd604f..5d2fc085a 100644 --- a/src/github.com/matrix-org/dendrite/appservice/appservice.go +++ b/src/github.com/matrix-org/dendrite/appservice/appservice.go @@ -54,6 +54,9 @@ func SetupAppServiceAPIComponent( logrus.WithError(err).Panicf("failed to connect to appservice db") } + // Wrap application services in a type that relates the application service and + // a sync.Cond object that can be used to notify workers when there are new + // events to be sent out. workerStates := make([]types.ApplicationServiceWorkerState, len(base.Cfg.Derived.ApplicationServices)) for i, appservice := range base.Cfg.Derived.ApplicationServices { m := sync.Mutex{}