mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-25 12:59:15 -08:00
accept durations expressed as days (i.e. '1d') (#4094)
This commit is contained in:
parent
8cbbbc05c3
commit
b49acb1e00
53 changed files with 378 additions and 257 deletions
|
|
@ -32,7 +32,7 @@ type PPROF struct {
|
|||
ServerCert string
|
||||
AllowOrigin string
|
||||
TrustedProxies conf.IPNetworks
|
||||
ReadTimeout conf.StringDuration
|
||||
ReadTimeout conf.Duration
|
||||
AuthManager pprofAuthManager
|
||||
Parent pprofParent
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ func TestPreflightRequest(t *testing.T) {
|
|||
s := &PPROF{
|
||||
Address: "127.0.0.1:9999",
|
||||
AllowOrigin: "*",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
ReadTimeout: conf.Duration(10 * time.Second),
|
||||
Parent: test.NilLogger,
|
||||
}
|
||||
err := s.Initialize()
|
||||
|
|
@ -51,7 +51,7 @@ func TestPprof(t *testing.T) {
|
|||
s := &PPROF{
|
||||
Address: "127.0.0.1:9999",
|
||||
AllowOrigin: "*",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
ReadTimeout: conf.Duration(10 * time.Second),
|
||||
AuthManager: test.NilAuthManager,
|
||||
Parent: test.NilLogger,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue