Fix connection file watching. Closes #1469

This commit is contained in:
kaidaguerre
2022-03-08 16:32:06 +00:00
committed by GitHub
parent 8d01fce4b8
commit a4976c3dc5
5 changed files with 13 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ func runPluginManagerCmd(cmd *cobra.Command, args []string) {
}
func shouldRunConnectionWatcher() bool {
// if CacheEnabledEnvVar is set, overwrite the value in DefaultConnectionOptions
// if EnvConnectionWatcher is set, overwrite the value in DefaultConnectionOptions
if envStr, ok := os.LookupEnv(constants.EnvConnectionWatcher); ok {
if parsedEnv, err := types.ToBool(envStr); err == nil {
return parsedEnv