feat: options to disable update check & fix client lazy mode

This commit is contained in:
Toby
2023-08-24 14:10:51 -07:00
parent 09355c4e21
commit 353aacfd62
4 changed files with 37 additions and 22 deletions

View File

@@ -606,7 +606,9 @@ func runServer(cmd *cobra.Command, args []string) {
}
logger.Info("server up and running")
go runCheckUpdateServer()
if !disableUpdateCheck {
go runCheckUpdateServer()
}
if err := s.Serve(); err != nil {
logger.Fatal("failed to serve", zap.Error(err))