mirror of
https://github.com/datarhei/core.git
synced 2025-10-17 21:41:34 +08:00
Provide Probe() a config instead of a process ID
This commit is contained in:
@@ -659,7 +659,12 @@ func (h *RestreamHandler) Probe(c echo.Context) error {
|
||||
Domain: domain,
|
||||
}
|
||||
|
||||
probe := h.restream.Probe(tid)
|
||||
process, err := h.restream.GetProcess(tid)
|
||||
if err != nil {
|
||||
return api.Err(http.StatusNotFound, "")
|
||||
}
|
||||
|
||||
probe := h.restream.Probe(process.Config, 20*time.Second)
|
||||
|
||||
apiprobe := api.Probe{}
|
||||
apiprobe.Unmarshal(&probe)
|
||||
|
Reference in New Issue
Block a user