add opt gracefultimeout broker
Some checks failed
test / test (pull_request) Failing after 13m43s
lint / lint (pull_request) Failing after 14m9s
coverage / build (pull_request) Failing after 14m25s

This commit is contained in:
Evstigneev Denis
2025-12-10 15:20:14 +03:00
parent d9afc9ce4f
commit e7f9f638bd

View File

@@ -80,6 +80,12 @@ func Context(ctx context.Context) Option {
}
}
func GracefulTimeout(t time.Duration) Option {
return func(o *Options) {
o.GracefulTimeout = t
}
}
// ContentType used by default if not specified
func ContentType(ct string) Option {
return func(o *Options) {