mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
Fix db client deadlocks with non-blocking cleanup and RW locks (#4918)
This commit is contained in:
@@ -60,11 +60,15 @@ func doRunPluginManager(cmd *cobra.Command) error {
|
||||
log.Printf("[INFO] starting connection watcher")
|
||||
connectionWatcher, err := connection.NewConnectionWatcher(pluginManager)
|
||||
if err != nil {
|
||||
log.Printf("[ERROR] failed to create connection watcher: %v", err)
|
||||
return err
|
||||
}
|
||||
log.Printf("[INFO] connection watcher created successfully")
|
||||
|
||||
// close the connection watcher
|
||||
defer connectionWatcher.Close()
|
||||
} else {
|
||||
log.Printf("[WARN] connection watcher is DISABLED")
|
||||
}
|
||||
|
||||
log.Printf("[INFO] about to serve")
|
||||
|
||||
Reference in New Issue
Block a user