timeOut passthrough

This commit is contained in:
Andrew Kidd
2021-05-14 18:58:28 +01:00
parent a9a9c54b6c
commit 333c4cc41e

View File

@@ -19,7 +19,7 @@ func ProbeWithTimeout(fileName string, timeOut time.Duration, kwargs KwArgs) (st
"of": "json", "of": "json",
} }
return ProbeWithTimeoutExec(fileName, 0, MergeKwArgs([]KwArgs{args, kwargs})) return ProbeWithTimeoutExec(fileName, timeOut, MergeKwArgs([]KwArgs{args, kwargs}))
} }
func ProbeWithTimeoutExec(fileName string, timeOut time.Duration, kwargs KwArgs) (string, error) { func ProbeWithTimeoutExec(fileName string, timeOut time.Duration, kwargs KwArgs) (string, error) {