From 5b482a0926cb166b3699f3b0184600fb8c3a75bd Mon Sep 17 00:00:00 2001 From: Valentin Kuznetsov Date: Fri, 26 Aug 2022 10:11:00 -0400 Subject: [PATCH] comment out clean-up channel associated with migration cleanup server --- web/server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/server.go b/web/server.go index 93e950ba..1ef7e241 100644 --- a/web/server.go +++ b/web/server.go @@ -500,7 +500,7 @@ func Server(configFile string) { } migDone := make(chan bool) - clpDone := make(chan bool) + // clpDone := make(chan bool) if Config.ServerType == "DBSMigration" { go dbs.MigrationServer(dbs.MigrationServerInterval, dbs.MigrationProcessTimeout, migDone) //go dbs.MigrationCleanupServer(dbs.MigrationCleanupInterval, dbs.MigrationCleanupOffset, clpDone) @@ -525,9 +525,9 @@ func Server(configFile string) { migDone <- true } // send notification to stop cleanup migration server - if Config.ServerType == "DBSMigration" { - clpDone <- true - } + // if Config.ServerType == "DBSMigration" { + // clpDone <- true + // } // add extra timeout for shutdown service stuff ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)