mirror of
https://github.com/datarhei/core.git
synced 2025-12-24 13:07:56 +08:00
Provide Probe() a config instead of a process ID
This commit is contained in:
@@ -1464,11 +1464,7 @@ func probeInput(binary string, config app.Config) app.Probe {
|
||||
return app.Probe{}
|
||||
}
|
||||
|
||||
rs.AddProcess(&config)
|
||||
|
||||
id := config.ProcessID()
|
||||
probe := rs.Probe(id)
|
||||
rs.DeleteProcess(id)
|
||||
probe := rs.Probe(&config, 20*time.Second)
|
||||
|
||||
return probe
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user