mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Don't close tracers multiple times
This commit is contained in:
parent
9831fcb855
commit
f3ab57444a
9 changed files with 1 additions and 19 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue