Clean up diff

This commit is contained in:
Andrew Morgan 2018-07-12 10:48:59 +01:00
parent 4f0fb2aaee
commit 70c18e62c2

View file

@ -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{}