Don't close tracers multiple times

This commit is contained in:
Andrew Morgan 2018-07-24 14:43:02 +01:00
parent 9831fcb855
commit f3ab57444a
9 changed files with 1 additions and 19 deletions

View file

@ -25,11 +25,9 @@ func main() {
cfg := basecomponent.ParseFlags()
tracers := common.NewTracers(cfg)
defer tracers.Close() // nolint: errcheck
base := basecomponent.NewBaseDendrite(cfg, tracers, "AppServiceAPI")
defer base.Close() // nolint: errcheck
accountDB := base.CreateAccountsDB()
deviceDB := base.CreateDeviceDB()
federation := base.CreateFederationClient()

View file

@ -26,8 +26,6 @@ func main() {
cfg := basecomponent.ParseFlags()
tracers := common.NewTracers(cfg)
defer tracers.Close() // nolint: errcheck
base := basecomponent.NewBaseDendrite(cfg, tracers, "ClientAPI")
defer base.Close() // nolint: errcheck

View file

@ -25,8 +25,6 @@ func main() {
cfg := basecomponent.ParseFlags()
tracers := common.NewTracers(cfg)
defer tracers.Close() // nolint: errcheck
base := basecomponent.NewBaseDendrite(cfg, tracers, "FederationAPI")
defer base.Close() // nolint: errcheck

View file

@ -24,8 +24,6 @@ func main() {
cfg := basecomponent.ParseFlags()
tracers := common.NewTracers(cfg)
defer tracers.Close() // nolint: errcheck
base := basecomponent.NewBaseDendrite(cfg, tracers, "FederationSender")
defer base.Close() // nolint: errcheck

View file

@ -24,8 +24,6 @@ func main() {
cfg := basecomponent.ParseFlags()
tracers := common.NewTracers(cfg)
defer tracers.Close() // nolint: errcheck
base := basecomponent.NewBaseDendrite(cfg, tracers, "MediaAPI")
defer base.Close() // nolint: errcheck

View file

@ -46,8 +46,6 @@ func main() {
cfg := basecomponent.ParseMonolithFlags()
tracers := common.NewTracers(cfg)
defer tracers.Close() // nolint: errcheck
base := basecomponent.NewBaseDendrite(cfg, tracers, "Monolith")
defer base.Close() // nolint: errcheck

View file

@ -24,8 +24,6 @@ func main() {
cfg := basecomponent.ParseFlags()
tracers := common.NewTracers(cfg)
defer tracers.Close() // nolint: errcheck
base := basecomponent.NewBaseDendrite(cfg, tracers, "PublicRoomsAPI")
defer base.Close() // nolint: errcheck

View file

@ -26,8 +26,6 @@ func main() {
cfg := basecomponent.ParseFlags()
tracers := common.NewTracers(cfg)
defer tracers.Close() // nolint: errcheck
base := basecomponent.NewBaseDendrite(cfg, tracers, "RoomServerAPI")
defer base.Close() // nolint: errcheck

View file

@ -24,8 +24,6 @@ func main() {
cfg := basecomponent.ParseFlags()
tracers := common.NewTracers(cfg)
defer tracers.Close() // nolint: errcheck
base := basecomponent.NewBaseDendrite(cfg, tracers, "SyncAPI")
defer base.Close() // nolint: errcheck