mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-27 10:34:42 -05:00
12 lines
292 B
Go
12 lines
292 B
Go
package content
|
|
|
|
import "time"
|
|
|
|
// SetProbeTimeout shortens the version check, a test of a hanging tika would
|
|
// otherwise wait seconds per probe
|
|
func SetProbeTimeout(d time.Duration) (restore func()) {
|
|
previous := probeTimeout
|
|
probeTimeout = d
|
|
return func() { probeTimeout = previous }
|
|
}
|