mirror of
https://github.com/langgenius/dify.git
synced 2026-11-11 05:41:09 +08:00
fix(runtime): handle broker directory close in lint
This commit is contained in:
1 file changed
+1
-1
@@ -456,7 +456,7 @@ func (m *Manager) startBroker(s Scope) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer root.Close()
|
||||
defer func() { _ = root.Close() }()
|
||||
socketName := filepath.Join(id, "broker.sock")
|
||||
if err := root.Remove(socketName); err != nil && !os.IsNotExist(err) {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user